Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
eisa_eeprom.h File Reference

Go to the source code of this file.

Data Structures

struct  eeprom_header
 
struct  eeprom_eisa_slot_info
 

Macros

#define HPEE_MAX_LENGTH   0x2000 /* maximum eeprom length */
 
#define HPEE_SLOT_INFO(slot)   (20+(48*slot))
 
#define HPEE_SLOT_INFO_EMBEDDED   0x10
 
#define HPEE_SLOT_INFO_VIRTUAL   0x20
 
#define HPEE_SLOT_INFO_NO_READID   0x40
 
#define HPEE_SLOT_INFO_DUPLICATE   0x80
 
#define HPEE_SLOT_FEATURES_ENABLE   0x01
 
#define HPEE_SLOT_FEATURES_IOCHK   0x02
 
#define HPEE_SLOT_FEATURES_CFG_INCOMPLETE   0x80
 
#define HPEE_FUNCTION_INFO_HAVE_TYPE   0x01
 
#define HPEE_FUNCTION_INFO_HAVE_MEMORY   0x02
 
#define HPEE_FUNCTION_INFO_HAVE_IRQ   0x04
 
#define HPEE_FUNCTION_INFO_HAVE_DMA   0x08
 
#define HPEE_FUNCTION_INFO_HAVE_PORT   0x10
 
#define HPEE_FUNCTION_INFO_HAVE_PORT_INIT   0x20
 
#define HPEE_FUNCTION_INFO_HAVE_FUNCTION   0x01
 
#define HPEE_FUNCTION_INFO_F_DISABLED   0x80
 
#define HPEE_FUNCTION_INFO_CFG_FREE_FORM   0x40
 
#define HPEE_FLAG_BOARD_IS_ISA   0x01 /* flag and minor version for isa board */
 
#define HPEE_MEMORY_MAX_ENT   9
 
#define HPEE_MEMORY_WRITABLE   0x01
 
#define HPEE_MEMORY_CACHABLE   0x02
 
#define HPEE_MEMORY_TYPE_MASK   0x18
 
#define HPEE_MEMORY_TYPE_SYS   0x00
 
#define HPEE_MEMORY_TYPE_EXP   0x08
 
#define HPEE_MEMORY_TYPE_VIR   0x10
 
#define HPEE_MEMORY_TYPE_OTH   0x18
 
#define HPEE_MEMORY_SHARED   0x20
 
#define HPEE_MEMORY_MORE   0x80
 
#define HPEE_MEMORY_WIDTH_MASK   0x03
 
#define HPEE_MEMORY_WIDTH_BYTE   0x00
 
#define HPEE_MEMORY_WIDTH_WORD   0x01
 
#define HPEE_MEMORY_WIDTH_DWORD   0x02
 
#define HPEE_MEMORY_DECODE_MASK   0x0c
 
#define HPEE_MEMORY_DECODE_20BITS   0x00
 
#define HPEE_MEMORY_DECODE_24BITS   0x04
 
#define HPEE_MEMORY_DECODE_32BITS   0x08
 
#define HPEE_IRQ_MAX_ENT   7
 
#define HPEE_IRQ_CHANNEL_MASK   0xf
 
#define HPEE_IRQ_TRIG_LEVEL   0x20
 
#define HPEE_IRQ_MORE   0x80
 
#define HPEE_DMA_MAX_ENT   4
 
#define HPEE_DMA_CHANNEL_MASK   7
 
#define HPEE_DMA_SIZE_MASK   0xc
 
#define HPEE_DMA_SIZE_BYTE   0x0
 
#define HPEE_DMA_SIZE_WORD   0x4
 
#define HPEE_DMA_SIZE_DWORD   0x8
 
#define HPEE_DMA_SHARED   0x40
 
#define HPEE_DMA_MORE   0x80
 
#define HPEE_DMA_TIMING_MASK   0x30
 
#define HPEE_DMA_TIMING_ISA   0x0
 
#define HPEE_DMA_TIMING_TYPEA   0x10
 
#define HPEE_DMA_TIMING_TYPEB   0x20
 
#define HPEE_DMA_TIMING_TYPEC   0x30
 
#define HPEE_PORT_MAX_ENT   20
 
#define HPEE_PORT_SIZE_MASK   0x1f
 
#define HPEE_PORT_SHARED   0x40
 
#define HPEE_PORT_MORE   0x80
 
#define HPEE_PORT_INIT_MAX_LEN   60 /* in bytes here */
 
#define HPEE_PORT_INIT_WIDTH_MASK   0x3
 
#define HPEE_PORT_INIT_WIDTH_BYTE   0x0
 
#define HPEE_PORT_INIT_WIDTH_WORD   0x1
 
#define HPEE_PORT_INIT_WIDTH_DWORD   0x2
 
#define HPEE_PORT_INIT_MASK   0x4
 
#define HPEE_PORT_INIT_MORE   0x80
 
#define HPEE_SELECTION_MAX_ENT   26
 
#define HPEE_TYPE_MAX_LEN   80
 

Functions

struct eeprom_header __attribute__ ((packed))
 

Variables

void __iomemeisa_eeprom_addr
 
u_int32_t num_writes
 
u_int8_t flags
 
u_int8_t ver_maj
 
u_int8_t ver_min
 
u_int8_t num_slots
 
u_int16_t csum
 
u_int8_t pad [10]
 
u_int32_t eisa_slot_id
 
u_int32_t config_data_offset
 
u_int16_t num_functions
 
u_int16_t config_data_length
 
u_int8_t slot_info
 
u_int8_t slot_features
 
u_int8_t function_info
 

Macro Definition Documentation

#define HPEE_DMA_CHANNEL_MASK   7

Definition at line 117 of file eisa_eeprom.h.

#define HPEE_DMA_MAX_ENT   4

Definition at line 114 of file eisa_eeprom.h.

#define HPEE_DMA_MORE   0x80

Definition at line 123 of file eisa_eeprom.h.

#define HPEE_DMA_SHARED   0x40

Definition at line 122 of file eisa_eeprom.h.

#define HPEE_DMA_SIZE_BYTE   0x0

Definition at line 119 of file eisa_eeprom.h.

#define HPEE_DMA_SIZE_DWORD   0x8

Definition at line 121 of file eisa_eeprom.h.

#define HPEE_DMA_SIZE_MASK   0xc

Definition at line 118 of file eisa_eeprom.h.

#define HPEE_DMA_SIZE_WORD   0x4

Definition at line 120 of file eisa_eeprom.h.

#define HPEE_DMA_TIMING_ISA   0x0

Definition at line 127 of file eisa_eeprom.h.

#define HPEE_DMA_TIMING_MASK   0x30

Definition at line 126 of file eisa_eeprom.h.

#define HPEE_DMA_TIMING_TYPEA   0x10

Definition at line 128 of file eisa_eeprom.h.

#define HPEE_DMA_TIMING_TYPEB   0x20

Definition at line 129 of file eisa_eeprom.h.

#define HPEE_DMA_TIMING_TYPEC   0x30

Definition at line 130 of file eisa_eeprom.h.

#define HPEE_FLAG_BOARD_IS_ISA   0x01 /* flag and minor version for isa board */

Definition at line 115 of file eisa_eeprom.h.

#define HPEE_FUNCTION_INFO_CFG_FREE_FORM   0x40

Definition at line 112 of file eisa_eeprom.h.

#define HPEE_FUNCTION_INFO_F_DISABLED   0x80

Definition at line 111 of file eisa_eeprom.h.

#define HPEE_FUNCTION_INFO_HAVE_DMA   0x08

Definition at line 103 of file eisa_eeprom.h.

#define HPEE_FUNCTION_INFO_HAVE_FUNCTION   0x01

Definition at line 110 of file eisa_eeprom.h.

#define HPEE_FUNCTION_INFO_HAVE_IRQ   0x04

Definition at line 102 of file eisa_eeprom.h.

#define HPEE_FUNCTION_INFO_HAVE_MEMORY   0x02

Definition at line 101 of file eisa_eeprom.h.

#define HPEE_FUNCTION_INFO_HAVE_PORT   0x10

Definition at line 104 of file eisa_eeprom.h.

#define HPEE_FUNCTION_INFO_HAVE_PORT_INIT   0x20

Definition at line 105 of file eisa_eeprom.h.

#define HPEE_FUNCTION_INFO_HAVE_TYPE   0x01

Definition at line 100 of file eisa_eeprom.h.

#define HPEE_IRQ_CHANNEL_MASK   0xf

Definition at line 109 of file eisa_eeprom.h.

#define HPEE_IRQ_MAX_ENT   7

Definition at line 107 of file eisa_eeprom.h.

#define HPEE_IRQ_MORE   0x80

Definition at line 111 of file eisa_eeprom.h.

#define HPEE_IRQ_TRIG_LEVEL   0x20

Definition at line 110 of file eisa_eeprom.h.

#define HPEE_MAX_LENGTH   0x2000 /* maximum eeprom length */

Definition at line 18 of file eisa_eeprom.h.

#define HPEE_MEMORY_CACHABLE   0x02

Definition at line 83 of file eisa_eeprom.h.

#define HPEE_MEMORY_DECODE_20BITS   0x00

Definition at line 98 of file eisa_eeprom.h.

#define HPEE_MEMORY_DECODE_24BITS   0x04

Definition at line 99 of file eisa_eeprom.h.

#define HPEE_MEMORY_DECODE_32BITS   0x08

Definition at line 100 of file eisa_eeprom.h.

#define HPEE_MEMORY_DECODE_MASK   0x0c

Definition at line 97 of file eisa_eeprom.h.

#define HPEE_MEMORY_MAX_ENT   9

Definition at line 80 of file eisa_eeprom.h.

#define HPEE_MEMORY_MORE   0x80

Definition at line 90 of file eisa_eeprom.h.

#define HPEE_MEMORY_SHARED   0x20

Definition at line 89 of file eisa_eeprom.h.

#define HPEE_MEMORY_TYPE_EXP   0x08

Definition at line 86 of file eisa_eeprom.h.

#define HPEE_MEMORY_TYPE_MASK   0x18

Definition at line 84 of file eisa_eeprom.h.

#define HPEE_MEMORY_TYPE_OTH   0x18

Definition at line 88 of file eisa_eeprom.h.

#define HPEE_MEMORY_TYPE_SYS   0x00

Definition at line 85 of file eisa_eeprom.h.

#define HPEE_MEMORY_TYPE_VIR   0x10

Definition at line 87 of file eisa_eeprom.h.

#define HPEE_MEMORY_WIDTH_BYTE   0x00

Definition at line 94 of file eisa_eeprom.h.

#define HPEE_MEMORY_WIDTH_DWORD   0x02

Definition at line 96 of file eisa_eeprom.h.

#define HPEE_MEMORY_WIDTH_MASK   0x03

Definition at line 93 of file eisa_eeprom.h.

#define HPEE_MEMORY_WIDTH_WORD   0x01

Definition at line 95 of file eisa_eeprom.h.

#define HPEE_MEMORY_WRITABLE   0x01

Definition at line 82 of file eisa_eeprom.h.

#define HPEE_PORT_INIT_MASK   0x4

Definition at line 146 of file eisa_eeprom.h.

#define HPEE_PORT_INIT_MAX_LEN   60 /* in bytes here */

Definition at line 140 of file eisa_eeprom.h.

#define HPEE_PORT_INIT_MORE   0x80

Definition at line 147 of file eisa_eeprom.h.

#define HPEE_PORT_INIT_WIDTH_BYTE   0x0

Definition at line 143 of file eisa_eeprom.h.

#define HPEE_PORT_INIT_WIDTH_DWORD   0x2

Definition at line 145 of file eisa_eeprom.h.

#define HPEE_PORT_INIT_WIDTH_MASK   0x3

Definition at line 142 of file eisa_eeprom.h.

#define HPEE_PORT_INIT_WIDTH_WORD   0x1

Definition at line 144 of file eisa_eeprom.h.

#define HPEE_PORT_MAX_ENT   20

Definition at line 132 of file eisa_eeprom.h.

#define HPEE_PORT_MORE   0x80

Definition at line 136 of file eisa_eeprom.h.

#define HPEE_PORT_SHARED   0x40

Definition at line 135 of file eisa_eeprom.h.

#define HPEE_PORT_SIZE_MASK   0x1f

Definition at line 134 of file eisa_eeprom.h.

#define HPEE_SELECTION_MAX_ENT   26

Definition at line 149 of file eisa_eeprom.h.

#define HPEE_SLOT_FEATURES_CFG_INCOMPLETE   0x80

Definition at line 94 of file eisa_eeprom.h.

#define HPEE_SLOT_FEATURES_ENABLE   0x01

Definition at line 92 of file eisa_eeprom.h.

#define HPEE_SLOT_FEATURES_IOCHK   0x02

Definition at line 93 of file eisa_eeprom.h.

#define HPEE_SLOT_INFO (   slot)    (20+(48*slot))

Definition at line 20 of file eisa_eeprom.h.

#define HPEE_SLOT_INFO_DUPLICATE   0x80

Definition at line 89 of file eisa_eeprom.h.

#define HPEE_SLOT_INFO_EMBEDDED   0x10

Definition at line 86 of file eisa_eeprom.h.

#define HPEE_SLOT_INFO_NO_READID   0x40

Definition at line 88 of file eisa_eeprom.h.

#define HPEE_SLOT_INFO_VIRTUAL   0x20

Definition at line 87 of file eisa_eeprom.h.

#define HPEE_TYPE_MAX_LEN   80

Definition at line 151 of file eisa_eeprom.h.

Function Documentation

struct eeprom_header __attribute__ ( (packed)  )
read

Definition at line 171 of file esd_usb2.c.

Variable Documentation

u_int16_t config_data_length

Definition at line 83 of file eisa_eeprom.h.

u_int32_t config_data_offset

Definition at line 79 of file eisa_eeprom.h.

u8 csum

Definition at line 39 of file eisa_eeprom.h.

void __iomem* eisa_eeprom_addr
u_int32_t eisa_slot_id

Definition at line 78 of file eisa_eeprom.h.

u_int8_t flags

Definition at line 35 of file eisa_eeprom.h.

u_int8_t function_info

Definition at line 113 of file eisa_eeprom.h.

u_int16_t num_functions

Definition at line 82 of file eisa_eeprom.h.

u_int8_t num_slots

Definition at line 38 of file eisa_eeprom.h.

u_int32_t num_writes

Definition at line 34 of file eisa_eeprom.h.

u_int8_t pad[24]

Definition at line 40 of file eisa_eeprom.h.

u_int8_t slot_features

Definition at line 95 of file eisa_eeprom.h.

u_int8_t slot_info

Definition at line 90 of file eisa_eeprom.h.

u_int8_t ver_maj

Definition at line 36 of file eisa_eeprom.h.

u_int8_t ver_min

Definition at line 37 of file eisa_eeprom.h.