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

Go to the source code of this file.

Data Structures

struct  ecard_id
 
struct  in_ecid
 
struct  expansion_card_ops
 
struct  expansion_card
 
struct  in_chunk_dir
 
struct  ecard_driver
 

Macros

#define MANU_ACORN   0x0000
 
#define PROD_ACORN_SCSI   0x0002
 
#define PROD_ACORN_ETHER1   0x0003
 
#define PROD_ACORN_MFM   0x000b
 
#define MANU_ANT2   0x0011
 
#define PROD_ANT_ETHER3   0x00a4
 
#define MANU_ATOMWIDE   0x0017
 
#define PROD_ATOMWIDE_3PSERIAL   0x0090
 
#define MANU_IRLAM_INSTRUMENTS   0x001f
 
#define MANU_IRLAM_INSTRUMENTS_ETHERN   0x5678
 
#define MANU_OAK   0x0021
 
#define PROD_OAK_SCSI   0x0058
 
#define MANU_MORLEY   0x002b
 
#define PROD_MORLEY_SCSI_UNCACHED   0x0067
 
#define MANU_CUMANA   0x003a
 
#define PROD_CUMANA_SCSI_2   0x003a
 
#define PROD_CUMANA_SCSI_1   0x00a0
 
#define MANU_ICS   0x003c
 
#define PROD_ICS_IDE   0x00ae
 
#define MANU_ICS2   0x003d
 
#define PROD_ICS2_IDE   0x00ae
 
#define MANU_SERPORT   0x003f
 
#define PROD_SERPORT_DSPORT   0x00b9
 
#define MANU_ARXE   0x0041
 
#define PROD_ARXE_SCSI   0x00be
 
#define MANU_I3   0x0046
 
#define PROD_I3_ETHERLAN500   0x00d4
 
#define PROD_I3_ETHERLAN600   0x00ec
 
#define PROD_I3_ETHERLAN600A   0x011e
 
#define MANU_ANT   0x0053
 
#define PROD_ANT_ETHERM   0x00d8
 
#define PROD_ANT_ETHERB   0x00e4
 
#define MANU_ALSYSTEMS   0x005b
 
#define PROD_ALSYS_SCSIATAPI   0x0107
 
#define MANU_MCS   0x0063
 
#define PROD_MCS_CONNECT32   0x0125
 
#define MANU_EESOX   0x0064
 
#define PROD_EESOX_SCSI2   0x008c
 
#define MANU_YELLOWSTONE   0x0096
 
#define PROD_YELLOWSTONE_RAPIDE32   0x0120
 
#define CONST   const
 
#define MAX_ECARDS   9
 
#define ECARD_NUM_RESOURCES   (6)
 
#define ECARD_RES_IOCSLOW   (0)
 
#define ECARD_RES_IOCMEDIUM   (1)
 
#define ECARD_RES_IOCFAST   (2)
 
#define ECARD_RES_IOCSYNC   (3)
 
#define ECARD_RES_MEMC   (4)
 
#define ECARD_RES_EASI   (5)
 
#define ecard_resource_start(ec, nr)   ((ec)->resource[nr].start)
 
#define ecard_resource_end(ec, nr)   ((ec)->resource[nr].end)
 
#define ecard_resource_len(ec, nr)
 
#define ecard_resource_flags(ec, nr)   ((ec)->resource[nr].flags)
 
#define ecardm_iounmap(__ec, __addr)   devm_iounmap(&(__ec)->dev, __addr)
 
#define ECARD_DEV(_d)   container_of((_d), struct expansion_card, dev)
 
#define ECARD_DRV(_d)   container_of((_d), struct ecard_driver, drv)
 
#define ecard_set_drvdata(ec, data)   dev_set_drvdata(&(ec)->dev, (data))
 
#define ecard_get_drvdata(ec)   dev_get_drvdata(&(ec)->dev)
 

Typedefs

typedef struct expansion_card ecard_t
 
typedef unsigned longloader_t
 
typedef struct expansion_card_ops expansioncard_ops_t
 

Functions

void ecard_setirq (struct expansion_card *ec, const struct expansion_card_ops *ops, void *irq_data)
 
int ecard_readchunk (struct in_chunk_dir *cd, struct expansion_card *ec, int id, int num)
 
int ecard_request_resources (struct expansion_card *ec)
 
void ecard_release_resources (struct expansion_card *ec)
 
void __iomemecardm_iomap (struct expansion_card *ec, unsigned int res, unsigned long offset, unsigned long maxsize)
 
int ecard_register_driver (struct ecard_driver *)
 
void ecard_remove_driver (struct ecard_driver *)
 

Variables

struct bus_type ecard_bus_type
 

Macro Definition Documentation

#define CONST   const

Definition at line 83 of file ecard.h.

#define ECARD_DEV (   _d)    container_of((_d), struct expansion_card, dev)

Definition at line 199 of file ecard.h.

#define ECARD_DRV (   _d)    container_of((_d), struct ecard_driver, drv)

Definition at line 210 of file ecard.h.

#define ecard_get_drvdata (   ec)    dev_get_drvdata(&(ec)->dev)

Definition at line 213 of file ecard.h.

#define ECARD_NUM_RESOURCES   (6)

Definition at line 120 of file ecard.h.

#define ECARD_RES_EASI   (5)

Definition at line 127 of file ecard.h.

#define ECARD_RES_IOCFAST   (2)

Definition at line 124 of file ecard.h.

#define ECARD_RES_IOCMEDIUM   (1)

Definition at line 123 of file ecard.h.

#define ECARD_RES_IOCSLOW   (0)

Definition at line 122 of file ecard.h.

#define ECARD_RES_IOCSYNC   (3)

Definition at line 125 of file ecard.h.

#define ECARD_RES_MEMC   (4)

Definition at line 126 of file ecard.h.

#define ecard_resource_end (   ec,
  nr 
)    ((ec)->resource[nr].end)

Definition at line 130 of file ecard.h.

#define ecard_resource_flags (   ec,
  nr 
)    ((ec)->resource[nr].flags)

Definition at line 133 of file ecard.h.

#define ecard_resource_len (   ec,
  nr 
)
Value:
((ec)->resource[nr].end - \
(ec)->resource[nr].start + 1)

Definition at line 131 of file ecard.h.

#define ecard_resource_start (   ec,
  nr 
)    ((ec)->resource[nr].start)

Definition at line 129 of file ecard.h.

#define ecard_set_drvdata (   ec,
  data 
)    dev_set_drvdata(&(ec)->dev, (data))

Definition at line 212 of file ecard.h.

#define ecardm_iounmap (   __ec,
  __addr 
)    devm_iounmap(&(__ec)->dev, __addr)

Definition at line 195 of file ecard.h.

#define MANU_ACORN   0x0000

Definition at line 23 of file ecard.h.

#define MANU_ALSYSTEMS   0x005b

Definition at line 68 of file ecard.h.

#define MANU_ANT   0x0053

Definition at line 64 of file ecard.h.

#define MANU_ANT2   0x0011

Definition at line 28 of file ecard.h.

#define MANU_ARXE   0x0041

Definition at line 56 of file ecard.h.

#define MANU_ATOMWIDE   0x0017

Definition at line 31 of file ecard.h.

#define MANU_CUMANA   0x003a

Definition at line 43 of file ecard.h.

#define MANU_EESOX   0x0064

Definition at line 74 of file ecard.h.

#define MANU_I3   0x0046

Definition at line 59 of file ecard.h.

#define MANU_ICS   0x003c

Definition at line 47 of file ecard.h.

#define MANU_ICS2   0x003d

Definition at line 50 of file ecard.h.

#define MANU_IRLAM_INSTRUMENTS   0x001f

Definition at line 34 of file ecard.h.

#define MANU_IRLAM_INSTRUMENTS_ETHERN   0x5678

Definition at line 35 of file ecard.h.

#define MANU_MCS   0x0063

Definition at line 71 of file ecard.h.

#define MANU_MORLEY   0x002b

Definition at line 40 of file ecard.h.

#define MANU_OAK   0x0021

Definition at line 37 of file ecard.h.

#define MANU_SERPORT   0x003f

Definition at line 53 of file ecard.h.

#define MANU_YELLOWSTONE   0x0096

Definition at line 77 of file ecard.h.

#define MAX_ECARDS   9

Definition at line 86 of file ecard.h.

#define PROD_ACORN_ETHER1   0x0003

Definition at line 25 of file ecard.h.

#define PROD_ACORN_MFM   0x000b

Definition at line 26 of file ecard.h.

#define PROD_ACORN_SCSI   0x0002

Definition at line 24 of file ecard.h.

#define PROD_ALSYS_SCSIATAPI   0x0107

Definition at line 69 of file ecard.h.

#define PROD_ANT_ETHER3   0x00a4

Definition at line 29 of file ecard.h.

#define PROD_ANT_ETHERB   0x00e4

Definition at line 66 of file ecard.h.

#define PROD_ANT_ETHERM   0x00d8

Definition at line 65 of file ecard.h.

#define PROD_ARXE_SCSI   0x00be

Definition at line 57 of file ecard.h.

#define PROD_ATOMWIDE_3PSERIAL   0x0090

Definition at line 32 of file ecard.h.

#define PROD_CUMANA_SCSI_1   0x00a0

Definition at line 45 of file ecard.h.

#define PROD_CUMANA_SCSI_2   0x003a

Definition at line 44 of file ecard.h.

#define PROD_EESOX_SCSI2   0x008c

Definition at line 75 of file ecard.h.

#define PROD_I3_ETHERLAN500   0x00d4

Definition at line 60 of file ecard.h.

#define PROD_I3_ETHERLAN600   0x00ec

Definition at line 61 of file ecard.h.

#define PROD_I3_ETHERLAN600A   0x011e

Definition at line 62 of file ecard.h.

#define PROD_ICS2_IDE   0x00ae

Definition at line 51 of file ecard.h.

#define PROD_ICS_IDE   0x00ae

Definition at line 48 of file ecard.h.

#define PROD_MCS_CONNECT32   0x0125

Definition at line 72 of file ecard.h.

#define PROD_MORLEY_SCSI_UNCACHED   0x0067

Definition at line 41 of file ecard.h.

#define PROD_OAK_SCSI   0x0058

Definition at line 38 of file ecard.h.

#define PROD_SERPORT_DSPORT   0x00b9

Definition at line 54 of file ecard.h.

#define PROD_YELLOWSTONE_RAPIDE32   0x0120

Definition at line 78 of file ecard.h.

Typedef Documentation

Definition at line 108 of file ecard.h.

typedef unsigned long* loader_t

Definition at line 109 of file ecard.h.

Function Documentation

int ecard_readchunk ( struct in_chunk_dir cd,
struct expansion_card ec,
int  id,
int  num 
)

Definition at line 327 of file ecard.c.

int ecard_register_driver ( struct ecard_driver )

Definition at line 1094 of file ecard.c.

void ecard_release_resources ( struct expansion_card ec)

Definition at line 844 of file ecard.c.

void ecard_remove_driver ( struct ecard_driver )

Definition at line 1101 of file ecard.c.

int ecard_request_resources ( struct expansion_card ec)

Definition at line 820 of file ecard.c.

void ecard_setirq ( struct expansion_card ec,
const struct expansion_card_ops ops,
void irq_data 
)

Definition at line 855 of file ecard.c.

void __iomem* ecardm_iomap ( struct expansion_card ec,
unsigned int  res,
unsigned long  offset,
unsigned long  maxsize 
)

Definition at line 863 of file ecard.c.

Variable Documentation

struct bus_type ecard_bus_type

Definition at line 1121 of file ecard.c.