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

Go to the source code of this file.

Data Structures

struct  seeprom_descriptor
 

Macros

#define SEEPROM_INB(sd)   ahc_inb(sd->sd_ahc, sd->sd_control_offset)
 
#define SEEPROM_OUTB(sd, value)
 
#define SEEPROM_STATUS_INB(sd)   ahc_inb(sd->sd_ahc, sd->sd_status_offset)
 
#define SEEPROM_DATA_INB(sd)   ahc_inb(sd->sd_ahc, sd->sd_dataout_offset)
 

Enumerations

enum  seeprom_chip_t { C46 = 6, C56_66 = 8 }
 

Functions

int ahc_read_seeprom (struct seeprom_descriptor *sd, uint16_t *buf, u_int start_addr, u_int count)
 
int ahc_write_seeprom (struct seeprom_descriptor *sd, uint16_t *buf, u_int start_addr, u_int count)
 
int ahc_verify_cksum (struct seeprom_config *sc)
 

Macro Definition Documentation

#define SEEPROM_DATA_INB (   sd)    ahc_inb(sd->sd_ahc, sd->sd_dataout_offset)

Definition at line 93 of file aic7xxx_93cx6.h.

#define SEEPROM_INB (   sd)    ahc_inb(sd->sd_ahc, sd->sd_control_offset)

Definition at line 83 of file aic7xxx_93cx6.h.

#define SEEPROM_OUTB (   sd,
  value 
)
Value:
do { \
ahc_outb(sd->sd_ahc, sd->sd_control_offset, value); \
ahc_flush_device_writes(sd->sd_ahc); \
} while(0)

Definition at line 85 of file aic7xxx_93cx6.h.

#define SEEPROM_STATUS_INB (   sd)    ahc_inb(sd->sd_ahc, sd->sd_status_offset)

Definition at line 91 of file aic7xxx_93cx6.h.

Enumeration Type Documentation

Enumerator:
C46 
C56_66 

Definition at line 48 of file aic7xxx_93cx6.h.

Function Documentation

int ahc_read_seeprom ( struct seeprom_descriptor sd,
uint16_t buf,
u_int  start_addr,
u_int  count 
)

Definition at line 155 of file aic7xxx_93cx6.c.

int ahc_verify_cksum ( struct seeprom_config sc)

Definition at line 305 of file aic7xxx_93cx6.c.

int ahc_write_seeprom ( struct seeprom_descriptor sd,
uint16_t buf,
u_int  start_addr,
u_int  count 
)

Definition at line 227 of file aic7xxx_93cx6.c.