public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] any value in moving ATA/SATA stuff from drivers/block to headers?
@ 2015-12-28 13:02 Robert P. J. Day
  2016-01-14 20:29 ` Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: Robert P. J. Day @ 2015-12-28 13:02 UTC (permalink / raw)
  To: u-boot


  currently poking around in drivers/block, adding a driver for
another silicon image drive, and noticed that sata_sil3114.h has some
content that looks more appropriate for a generic ATA/SATA header
file.

 for example, this snippet:

/* Missing ata defines */
#define ATA_CMD_STANDBY                 0xE2
#define ATA_CMD_STANDBYNOW1             0xE0
#define ATA_CMD_IDLE                    0xE3
#define ATA_CMD_IDLEIMMEDIATE   0xE1

seems already covered by include/libata.h, while the earlier structure
definitions in that file:

struct sata_ioports {
... snip ...
};

struct sata_port {
... snip ...
};

also look like they could be moved to a generic SATA-related header
file. does that make any sense or sound like it has any value?

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-01-14 20:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-28 13:02 [U-Boot] any value in moving ATA/SATA stuff from drivers/block to headers? Robert P. J. Day
2016-01-14 20:29 ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox