Download INTRO (9) NetBSD Kernel Developer`s Manual INTRO (9

Transcript
PCMCIA (9)
NetBSD Kernel Developer’s Manual
PCMCIA (9)
struct pcmcia_function
Identifies the function of the devices. A device can have multiple functions. Consider it an
opaque type for identifying a particular function of a device.
struct pcmcia_config_entry
Contains information about the resources requested by the device. It contains the following
members:
int
uint32_t
int
int
u_long
struct {
number;
flags;
iftype;
num_iospace;
iomask;
u_long length;
u_long start;
} iospace[4];
uint16_t
irqmask;
int
num_memspace;
struct {
u_long length;
u_long cardaddr;
u_long hostaddr;
}
memspace[2];
int
maxtwins;
SIMPLEQ_ENTRY(pcmcia_config_entry) cfe_list;
struct pcmcia_tuple
A handle for identifying an entry in the CIS.
struct pcmcia_io_handle
A handle for mapping and allocating I/O address spaces. It contains the tag and handle for
accessing the bus-space.
struct pcmcia_mem_handle
A handle for mapping and allocating memory address spaces. It contains the tag and handle for
accessing the bus-space.
struct pcmcia_attach_args
A structure used to inform the driver of the device properties. It contains the following members:
int32_t
int32_t
struct pcmcia_card
struct pcmcia_function
manufacturer;
product;
∗card;
∗pf;
FUNCTIONS
pcmcia_function_init(pf , cfe)
Initialise the machine-independent PCMCIA state with the config entry cfe.
pcmcia_function_enable(pf)
Provide power to the socket containing the device specified by device function pf.
pcmcia_function_disable(pf)
Remove power from the socket containing the device specified by device function pf.
NetBSD 3.0
November 2, 2005
3