#include <linux/kernel.h>
#include <linux/device.h>
#include <linux/mod_devicetable.h>
#include <linux/timer.h>
#include <linux/spinlock.h>
#include <linux/completion.h>
#include <linux/list.h>
#include <linux/log2.h>
#include <asm/ldc.h>
#include <asm/mdesc.h>
Go to the source code of this file.
|
int | __vio_register_driver (struct vio_driver *drv, struct module *owner, const char *mod_name) |
|
void | vio_unregister_driver (struct vio_driver *drv) |
|
int | vio_ldc_send (struct vio_driver_state *vio, void *data, int len) |
|
void | vio_link_state_change (struct vio_driver_state *vio, int event) |
|
void | vio_conn_reset (struct vio_driver_state *vio) |
|
int | vio_control_pkt_engine (struct vio_driver_state *vio, void *pkt) |
|
int | vio_validate_sid (struct vio_driver_state *vio, struct vio_msg_tag *tp) |
|
u32 | vio_send_sid (struct vio_driver_state *vio) |
|
int | vio_ldc_alloc (struct vio_driver_state *vio, struct ldc_channel_config *base_cfg, void *event_arg) |
|
void | vio_ldc_free (struct vio_driver_state *vio) |
|
int | vio_driver_init (struct vio_driver_state *vio, struct vio_dev *vdev, u8 dev_class, struct vio_version *ver_table, int ver_table_size, struct vio_driver_ops *ops, char *name) |
|
void | vio_port_up (struct vio_driver_state *vio) |
|
#define VD_DISK_TYPE_DISK 0x02 /* Entire block device */ |
#define VD_DISK_TYPE_SLICE 0x01 /* Slice in block device */ |
#define VD_OP_BREAD 0x01 /* Block read */ |
#define VD_OP_BWRITE 0x02 /* Block write */ |
#define VD_OP_FLUSH 0x03 /* Flush disk contents */ |
#define VD_OP_GET_DEVID 0x0b /* Get device ID */ |
#define VD_OP_GET_DISKGEOM 0x08 /* Get disk geometry */ |
#define VD_OP_GET_EFI 0x0c /* Get EFI */ |
#define VD_OP_GET_VTOC 0x06 /* Get VTOC */ |
#define VD_OP_GET_WCE 0x04 /* Get write-cache status */ |
#define VD_OP_SCSICMD 0x0a /* SCSI control command */ |
#define VD_OP_SET_DISKGEOM 0x09 /* Set disk geometry */ |
#define VD_OP_SET_EFI 0x0d /* Set EFI */ |
#define VD_OP_SET_VTOC 0x07 /* Set VTOC */ |
#define VD_OP_SET_WCE 0x05 /* Enable/disable write-cache */ |
Definition at line 53 of file vio.h.
#define VDEV_DISK_SERVER 0x04 |
Definition at line 54 of file vio.h.
#define VDEV_NETWORK 0x01 |
Definition at line 51 of file vio.h.
#define VDEV_NETWORK_SWITCH 0x02 |
Definition at line 52 of file vio.h.
#define VIO_ACK_DISABLE 0x00 |
#define VIO_ACK_ENABLE 0x01 |
#define VIO_ATTR_INFO 0x0002 |
Definition at line 29 of file vio.h.
#define VIO_DEBUG_DATA 0x02 |
#define VIO_DEBUG_HS 0x01 |
#define VIO_DESC_ACCEPTED 0x03 |
#define VIO_DESC_DATA 0x0041 |
Definition at line 34 of file vio.h.
#define VIO_DESC_DONE 0x04 |
#define VIO_DESC_FREE 0x01 |
#define VIO_DESC_MODE 0x02 /* In-band descriptors */ |
Definition at line 81 of file vio.h.
#define VIO_DESC_READY 0x02 |
#define VIO_DISK_ALABEL_LEN 128 |
#define VIO_DISK_NUM_PART 8 |
#define VIO_DISK_VNAME_LEN 8 |
#define VIO_DR_STATE_RXREG 0x02 |
#define VIO_DR_STATE_RXREQ 0x20 |
#define VIO_DR_STATE_TXREG 0x01 |
#define VIO_DR_STATE_TXREQ 0x10 |
#define VIO_DRING_ACTIVE 0x01 |
Definition at line 91 of file vio.h.
#define VIO_DRING_DATA 0x0042 |
Definition at line 35 of file vio.h.
#define VIO_DRING_MODE 0x03 /* Descriptor rings */ |
Definition at line 82 of file vio.h.
#define VIO_DRING_REG 0x0003 |
Definition at line 30 of file vio.h.
#define VIO_DRING_STOPPED 0x02 |
Definition at line 92 of file vio.h.
#define VIO_DRING_UNREG 0x0004 |
Definition at line 31 of file vio.h.
#define VIO_DRIVER_RX_RING 1 |
#define VIO_DRIVER_TX_RING 0 |
#define VIO_HS_GOT_ATTR 0x04 |
#define VIO_HS_GOT_RDX 0x40 |
#define VIO_HS_GOT_RDX_ACK 0x20 |
#define VIO_HS_GOTVERS 0x01 |
#define VIO_HS_INVALID 0x00 |
#define VIO_HS_SENT_DREG 0x08 |
#define VIO_HS_SENT_RDX 0x10 |
#define VIO_HS_SENT_RDX_ACK 0x80 |
#define VIO_MAX_COMPAT_LEN 64 |
#define VIO_MAX_RING_COOKIES 24 |
#define VIO_MAX_TYPE_LEN 32 |
#define VIO_PKT_DATA 0x0040 |
Definition at line 33 of file vio.h.
#define VIO_PKT_MODE 0x01 /* Packet based transfer */ |
Definition at line 80 of file vio.h.
Definition at line 32 of file vio.h.
#define VIO_RX_DRING 0x0002 |
Definition at line 67 of file vio.h.
#define VIO_SUBTYPE_ACK 0x02 |
Definition at line 24 of file vio.h.
#define VIO_SUBTYPE_INFO 0x01 |
Definition at line 23 of file vio.h.
#define VIO_SUBTYPE_NACK 0x04 |
Definition at line 25 of file vio.h.
#define VIO_TX_DRING 0x0001 |
Definition at line 66 of file vio.h.
#define VIO_TYPE_CTRL 0x01 |
Definition at line 18 of file vio.h.
#define VIO_TYPE_DATA 0x02 |
Definition at line 19 of file vio.h.
#define VIO_TYPE_ERR 0x04 |
Definition at line 20 of file vio.h.
#define VIO_VER_INFO 0x0001 |
Definition at line 28 of file vio.h.
#define viodbg |
( |
|
TYPE, |
|
|
|
f, |
|
|
|
a... |
|
) |
| |
Value:do {
if (vio->debug & VIO_DEBUG_##
TYPE) \
vio->vdev->channel_id, ##
a); \
} while (0)
Definition at line 369 of file vio.h.
#define VNET_ADDR_ETHERMAC 0x01 |
#define VNET_MCAST_INFO 0x0101 |
Definition at line 36 of file vio.h.
vio_register_driver: - Register a new vio driver : The vio_driver structure to be registered.
Definition at line 1265 of file vio.c.
vio_unregister_driver - Remove registration of vio driver. : The vio_driver struct to be removed form registration
Definition at line 1285 of file vio.c.