#include <linux/mod_devicetable.h>
#include <linux/device.h>
#include <linux/interrupt.h>
#include "ipack_ids.h"
Go to the source code of this file.
DEFINE_IPACK_DEVICE_TABLE - macro used to describe a IndustryPack table : device table name
This macro is used to create a struct ipack_device_id array (a device table) in a generic manner.
Definition at line 202 of file ipack.h.
#define IPACK_DEVICE |
( |
|
_format, |
|
|
|
vend, |
|
|
|
dev |
|
) |
| |
Value:IPACK_DEVICE - macro used to describe a specific IndustryPack device : the format version (currently either 1 or 2, 8 bit value) : the 8 or 24 bit IndustryPack Vendor ID : the 8 or 16 bit IndustryPack Device ID
This macro is used to create a struct ipack_device_id that matches a specific device.
Definition at line 214 of file ipack.h.
#define IPACK_IDPROM_OFFSET_A 0x05 |
#define IPACK_IDPROM_OFFSET_C 0x07 |
#define IPACK_IDPROM_OFFSET_CRC 0x17 |
#define IPACK_IDPROM_OFFSET_DRIVER_ID_H 0x13 |
#define IPACK_IDPROM_OFFSET_DRIVER_ID_L 0x11 |
#define IPACK_IDPROM_OFFSET_I 0x01 |
#define IPACK_IDPROM_OFFSET_MANUFACTURER_ID 0x09 |
#define IPACK_IDPROM_OFFSET_MODEL 0x0B |
#define IPACK_IDPROM_OFFSET_NUM_BYTES 0x15 |
#define IPACK_IDPROM_OFFSET_P 0x03 |
#define IPACK_IDPROM_OFFSET_RESERVED 0x0F |
#define IPACK_IDPROM_OFFSET_REVISION 0x0D |
- Enumerator:
IPACK_IO_SPACE |
|
IPACK_ID_SPACE |
|
IPACK_MEM_SPACE |
|
IPACK_INT_SPACE |
|
Definition at line 34 of file ipack.h.
ipack_bus_register – register a new ipack bus
: pointer to the parent device, if any. : number of slots available in the bus device. : bus operations for the mezzanine drivers.
The carrier board device should call this function to register itself as available bus device in ipack.
Definition at line 208 of file ipack.c.
ipack_bus_unregister – unregister an ipack bus
Definition at line 243 of file ipack.c.
ipack_device_register – register a new mezzanine device
: ipack bus device it is plugged to. : slot position in the bus device.
Register a new ipack device (mezzanine device). The call is done by the carrier device driver.
Definition at line 429 of file ipack.c.
ipack_driver_register – Register a new driver
Called by a ipack driver to register itself as a driver that can manage ipack devices.
Definition at line 252 of file ipack.c.