PCI: moved IDE api flags to PCI.h
This commit is contained in:
@@ -327,6 +327,18 @@ struct pci_module_info {
|
||||
#define PCI_nvm 0x08 /* NVM Express controller */
|
||||
#define PCI_mass_storage_other 0x80 /* other mass storage controller */
|
||||
|
||||
/* ---
|
||||
bit mask of the class_api field for
|
||||
class_base = 0x01 (mass storage)
|
||||
class_sub = 0x01 (IDE controller)
|
||||
--- */
|
||||
|
||||
#define PCI_ide_primary_native 0x01 /* primary channel is in native mode */
|
||||
#define PCI_ide_primary_fixed 0x02 /* primary channel can be switched to native mode */
|
||||
#define PCI_ide_secondary_native 0x04 /* secondary channel is in native mode */
|
||||
#define PCI_ide_secondary_fixed 0x08 /* secondary channel can be switched to native mode */
|
||||
#define PCI_ide_master 0x80 /* master device */
|
||||
|
||||
/* ---
|
||||
values of the class_api field for
|
||||
class_base = 0x01 (mass storage)
|
||||
|
||||
@@ -55,15 +55,6 @@ enum {
|
||||
// offset of PRDT register; content must be dword-aligned
|
||||
};
|
||||
|
||||
// bit mask in class_api of PCI configuration
|
||||
// (for adapters that can run in compatability mode)
|
||||
enum {
|
||||
ATA_API_PRIMARY_NATIVE = 1, // primary channel is in native mode
|
||||
ATA_API_PRIMARY_FIXED = 2, // primary channel can be switched to native mode
|
||||
ATA_API_SECONDARY_NATIVE = 4, // secondary channel is in native mode
|
||||
ATA_API_SECONDARY_FIXED = 8 // secondary channel can be switched to native mode
|
||||
};
|
||||
|
||||
|
||||
// (maximum) size of S/G table
|
||||
// there are so many restrictions that we want to keep it inside one page
|
||||
|
||||
@@ -56,15 +56,6 @@ enum {
|
||||
// offset of PRDT register; content must be dword-aligned
|
||||
};
|
||||
|
||||
// bit mask in class_api of PCI configuration
|
||||
// (for adapters that can run in compatability mode)
|
||||
enum {
|
||||
IDE_API_PRIMARY_NATIVE = 1, // primary channel is in native mode
|
||||
IDE_API_PRIMARY_FIXED = 2, // primary channel can be switched to native mode
|
||||
IDE_API_SECONDARY_NATIVE = 4, // secondary channel is in native mode
|
||||
IDE_API_SECONDARY_FIXED = 8 // secondary channel can be switched to native mode
|
||||
};
|
||||
|
||||
|
||||
// (maximum) size of S/G table
|
||||
// there are so many restrictions that we want to keep it inside one page
|
||||
|
||||
Reference in New Issue
Block a user