Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
edd.h File Reference
#include <linux/types.h>

Go to the source code of this file.

Data Structures

struct  edd_device_params
 
struct  edd_info
 
struct  edd
 

Macros

#define EDDNR
 
#define EDDBUF   0xd00 /* addr of edd_info structs in boot_params */
 
#define EDDMAXNR   6 /* number of edd_info structs starting at EDDBUF */
 
#define EDDEXTSIZE   8 /* change these if you muck with the structures */
 
#define EDDPARMSIZE   74
 
#define CHECKEXTENSIONSPRESENT   0x41
 
#define GETDEVICEPARAMETERS   0x48
 
#define LEGACYGETDEVICEPARAMETERS   0x08
 
#define EDDMAGIC1   0x55AA
 
#define EDDMAGIC2   0xAA55
 
#define READ_SECTORS   0x02 /* int13 AH=0x02 is READ_SECTORS command */
 
#define EDD_MBR_SIG_OFFSET   0x1B8 /* offset of signature in the MBR */
 
#define EDD_MBR_SIG_BUF   0x290 /* addr in boot params */
 
#define EDD_MBR_SIG_MAX   16 /* max number of signatures to store */
 
#define EDD_MBR_SIG_NR_BUF
 
#define EDD_EXT_FIXED_DISK_ACCESS   (1 << 0)
 
#define EDD_EXT_DEVICE_LOCKING_AND_EJECTING   (1 << 1)
 
#define EDD_EXT_ENHANCED_DISK_DRIVE_SUPPORT   (1 << 2)
 
#define EDD_EXT_64BIT_EXTENSIONS   (1 << 3)
 
#define EDD_INFO_DMA_BOUNDARY_ERROR_TRANSPARENT   (1 << 0)
 
#define EDD_INFO_GEOMETRY_VALID   (1 << 1)
 
#define EDD_INFO_REMOVABLE   (1 << 2)
 
#define EDD_INFO_WRITE_VERIFY   (1 << 3)
 
#define EDD_INFO_MEDIA_CHANGE_NOTIFICATION   (1 << 4)
 
#define EDD_INFO_LOCKABLE   (1 << 5)
 
#define EDD_INFO_NO_MEDIA_PRESENT   (1 << 6)
 
#define EDD_INFO_USE_INT13_FN50   (1 << 7)
 

Functions

struct edd_device_params __attribute__ ((packed))
 

Variables

__u16 base_address
 
__u16 reserved1
 
__u32 reserved2
 
__u8 bus
 
__u8 slot
 
__u8 function
 
__u8 channel
 
__u32 reserved
 
__u8 device
 
__u32 reserved3
 
__u64 reserved4
 
__u8 lun
 
__u16 id
 
__u64 serial_number
 
__u64 eui
 
__u64 wwid
 
__u64 identity_tag
 
__u32 array_number
 
__u16 length
 
__u16 info_flags
 
__u32 num_default_cylinders
 
__u32 num_default_heads
 
__u32 sectors_per_track
 
__u64 number_of_sectors
 
__u16 bytes_per_sector
 
__u32 dpte_ptr
 
__u16 key
 
__u8 device_path_info_length
 
__u8 host_bus_type [4]
 
__u8 interface_type [8]
 
union {
interface_path
 
union {
device_path
 
__u8 checksum
 
__u8 version
 
__u16 interface_support
 
__u16 legacy_max_cylinder
 
__u8 legacy_max_head
 
__u8 legacy_sectors_per_track
 
struct edd_device_params params
 
struct edd __attribute__
 

Macro Definition Documentation

#define CHECKEXTENSIONSPRESENT   0x41

Definition at line 40 of file edd.h.

#define EDD_EXT_64BIT_EXTENSIONS   (1 << 3)

Definition at line 58 of file edd.h.

#define EDD_EXT_DEVICE_LOCKING_AND_EJECTING   (1 << 1)

Definition at line 56 of file edd.h.

#define EDD_EXT_ENHANCED_DISK_DRIVE_SUPPORT   (1 << 2)

Definition at line 57 of file edd.h.

#define EDD_EXT_FIXED_DISK_ACCESS   (1 << 0)

Definition at line 55 of file edd.h.

#define EDD_INFO_DMA_BOUNDARY_ERROR_TRANSPARENT   (1 << 0)

Definition at line 60 of file edd.h.

#define EDD_INFO_GEOMETRY_VALID   (1 << 1)

Definition at line 61 of file edd.h.

#define EDD_INFO_LOCKABLE   (1 << 5)

Definition at line 65 of file edd.h.

#define EDD_INFO_MEDIA_CHANGE_NOTIFICATION   (1 << 4)

Definition at line 64 of file edd.h.

#define EDD_INFO_NO_MEDIA_PRESENT   (1 << 6)

Definition at line 66 of file edd.h.

#define EDD_INFO_REMOVABLE   (1 << 2)

Definition at line 62 of file edd.h.

#define EDD_INFO_USE_INT13_FN50   (1 << 7)

Definition at line 67 of file edd.h.

#define EDD_INFO_WRITE_VERIFY   (1 << 3)

Definition at line 63 of file edd.h.

#define EDD_MBR_SIG_BUF   0x290 /* addr in boot params */

Definition at line 49 of file edd.h.

#define EDD_MBR_SIG_MAX   16 /* max number of signatures to store */

Definition at line 50 of file edd.h.

#define EDD_MBR_SIG_NR_BUF
Value:
0x1ea /* addr of number of MBR signtaures at EDD_MBR_SIG_BUF
in boot_params - treat this as 1 byte */

Definition at line 51 of file edd.h.

#define EDD_MBR_SIG_OFFSET   0x1B8 /* offset of signature in the MBR */

Definition at line 48 of file edd.h.

#define EDDBUF   0xd00 /* addr of edd_info structs in boot_params */

Definition at line 36 of file edd.h.

#define EDDEXTSIZE   8 /* change these if you muck with the structures */

Definition at line 38 of file edd.h.

#define EDDMAGIC1   0x55AA

Definition at line 43 of file edd.h.

#define EDDMAGIC2   0xAA55

Definition at line 44 of file edd.h.

#define EDDMAXNR   6 /* number of edd_info structs starting at EDDBUF */

Definition at line 37 of file edd.h.

#define EDDNR
Value:
0x1e9 /* addr of number of edd_info structs at EDDBUF
in boot_params - treat this as 1 byte */

Definition at line 35 of file edd.h.

#define EDDPARMSIZE   74

Definition at line 39 of file edd.h.

#define GETDEVICEPARAMETERS   0x48

Definition at line 41 of file edd.h.

#define LEGACYGETDEVICEPARAMETERS   0x08

Definition at line 42 of file edd.h.

#define READ_SECTORS   0x02 /* int13 AH=0x02 is READ_SECTORS command */

Definition at line 47 of file edd.h.

Function Documentation

struct edd_device_params __attribute__ ( (packed)  )
read

mcontroller : adapter info structure for old mimd_t apps

: base address : irq number : number of logical drives : pci bus : pci device : pci function : pci id : vendor id : slot number : unique id

Definition at line 171 of file esd_usb2.c.

Variable Documentation

__u32 array_number

Definition at line 154 of file edd.h.

__u16 base_address

Definition at line 90 of file edd.h.

__u8 bus

Definition at line 97 of file edd.h.

__u16 bytes_per_sector

Definition at line 175 of file edd.h.

Definition at line 100 of file edd.h.

__u8 checksum

Definition at line 266 of file edd.h.

Definition at line 119 of file edd.h.

union { ... } device_path
__u8 device_path_info_length

Definition at line 178 of file edd.h.

__u32 dpte_ptr

Definition at line 176 of file edd.h.

__u64 eui

Definition at line 141 of file edd.h.

__u8 function

Definition at line 99 of file edd.h.

__u8 host_bus_type[4]

Definition at line 181 of file edd.h.

Definition at line 133 of file edd.h.

__u64 identity_tag

Definition at line 149 of file edd.h.

__u16 info_flags

Definition at line 170 of file edd.h.

union { ... } interface_path
__u16 interface_support

Definition at line 181 of file edd.h.

__u8 interface_type[8]

Definition at line 182 of file edd.h.

__u16 key

Definition at line 177 of file edd.h.

__u16 legacy_max_cylinder

Definition at line 182 of file edd.h.

__u8 legacy_max_head

Definition at line 183 of file edd.h.

__u8 legacy_sectors_per_track

Definition at line 184 of file edd.h.

__u16 length

Definition at line 169 of file edd.h.

__u64 lun

Definition at line 128 of file edd.h.

__u32 num_default_cylinders

Definition at line 171 of file edd.h.

__u32 num_default_heads

Definition at line 172 of file edd.h.

__u64 number_of_sectors

Definition at line 174 of file edd.h.

Definition at line 185 of file edd.h.

__u64 reserved

Definition at line 101 of file edd.h.

__u64 reserved1

Definition at line 91 of file edd.h.

__u64 reserved2

Definition at line 92 of file edd.h.

__u32 reserved3

Definition at line 122 of file edd.h.

__u8 reserved4

Definition at line 123 of file edd.h.

__u32 sectors_per_track

Definition at line 173 of file edd.h.

__u64 serial_number

Definition at line 137 of file edd.h.

Definition at line 98 of file edd.h.

__u8 version

Definition at line 180 of file edd.h.

__u64 wwid

Definition at line 145 of file edd.h.