Go to the source code of this file.
|
int | fsl_rio_setup_rmu (struct rio_mport *mport, struct device_node *node) |
|
int | fsl_rio_port_write_init (struct fsl_rio_pw *pw) |
|
int | fsl_rio_pw_enable (struct rio_mport *mport, int enable) |
|
void | fsl_rio_port_error_handler (int offset) |
|
int | fsl_rio_doorbell_init (struct fsl_rio_dbell *dbell) |
|
int | fsl_rio_doorbell_send (struct rio_mport *mport, int index, u16 destid, u16 data) |
|
int | fsl_add_outb_message (struct rio_mport *mport, struct rio_dev *rdev, int mbox, void *buffer, size_t len) |
|
int | fsl_open_outb_mbox (struct rio_mport *mport, void *dev_id, int mbox, int entries) |
|
void | fsl_close_outb_mbox (struct rio_mport *mport, int mbox) |
|
int | fsl_open_inb_mbox (struct rio_mport *mport, void *dev_id, int mbox, int entries) |
|
void | fsl_close_inb_mbox (struct rio_mport *mport, int mbox) |
|
int | fsl_add_inb_buffer (struct rio_mport *mport, int mbox, void *buf) |
|
void * | fsl_get_inb_message (struct rio_mport *mport, int mbox) |
|
#define DOORBELL_ROWAR_EN 0x80000000 |
#define DOORBELL_ROWAR_MAINTRD 0x00070000 /* maintenance read */ |
#define DOORBELL_ROWAR_MAINTWD 0x00007000 |
#define DOORBELL_ROWAR_NREAD 0x00040000 /* NREAD */ |
#define DOORBELL_ROWAR_PCI 0x02000000 /* PCI window */ |
#define DOORBELL_ROWAR_RES 0x00002000 /* wrtpy: reserverd */ |
#define DOORBELL_ROWAR_SIZE 0x0000000b /* window size is 4k */ |
#define DOORBELL_ROWAR_TFLOWLV 0x08000000 /* highest priority level */ |
#define MAX_MSG_UNIT_NUM 2 |
#define RIO_ATMU_REGS_DBELL_OFFSET 0x10C40 |
#define RIO_ATMU_REGS_PORT1_OFFSET 0x10c00 |
#define RIO_ATMU_REGS_PORT2_OFFSET 0x10e00 |
#define RIO_LTLEDCSR 0x0608 |
#define RIO_MAINT_WIN_SIZE 0x400000 |
#define RIO_S_DBELL_REGS_OFFSET 0x13400 |
#define RIO_S_PW_REGS_OFFSET 0x134e0 |
fsl_add_inb_buffer - Add buffer to the MPC85xx inbound message queue : Master port implementing the inbound message unit : Inbound mailbox number : Buffer to add to inbound queue
Adds the buffer to the MPC85xx inbound message queue. Returns %0 on success or %-EINVAL on failure.
Definition at line 941 of file fsl_rmu.c.
fsl_add_outb_message - Add message to the MPC85xx outbound message queue : Master port with outbound message queue : Target of outbound message : Outbound mailbox : Message to add to outbound queue : Length of message
Adds the message to the MPC85xx outbound message queue. Returns %0 on success or %-EINVAL on failure.
Definition at line 651 of file fsl_rmu.c.
fsl_close_inb_mbox - Shut down MPC85xx inbound mailbox : Master port implementing the inbound message unit : Mailbox to close
Disables the inbound message unit, free all buffers, and frees the inbound message interrupt.
Definition at line 916 of file fsl_rmu.c.
fsl_close_outb_mbox - Shut down MPC85xx outbound mailbox : Master port implementing the outbound message unit : Mailbox to close
Disables the outbound message unit, free all buffers, and frees the outbound message interrupt.
Definition at line 815 of file fsl_rmu.c.
fsl_get_inb_message - Fetch inbound message from the MPC85xx message unit : Master port implementing the inbound message unit : Inbound mailbox number
Gets the next available inbound message from the inbound message queue. A pointer to the message is returned on success or NULL on failure.
Definition at line 973 of file fsl_rmu.c.
fsl_open_inb_mbox - Initialize MPC85xx inbound mailbox : Master port implementing the inbound message unit : Device specific pointer to pass on event : Mailbox to open : Number of entries in the inbound mailbox ring
Initializes buffer ring, request the inbound message interrupt, and enables the inbound message unit. Returns %0 on success and %-EINVAL or %-ENOMEM on failure.
Definition at line 844 of file fsl_rmu.c.
fsl_open_outb_mbox - Initialize MPC85xx outbound mailbox : Master port implementing the outbound message unit : Device specific pointer to pass on event : Mailbox to open : Number of entries in the outbound mailbox ring
Initializes buffer ring, request the outbound message interrupt, and enables the outbound message unit. Returns %0 on success and %-EINVAL or %-ENOMEM on failure.
Definition at line 711 of file fsl_rmu.c.
fsl_rio_doorbell_init - MPC85xx doorbell interface init : Master port implementing the inbound doorbell unit
Initializes doorbell unit hardware and inbound DMA buffer ring. Called from fsl_rio_setup(). Returns %0 on success or %-ENOMEM on failure.
Definition at line 1019 of file fsl_rmu.c.
fsl_rio_doorbell_send - Send a MPC85xx doorbell message : RapidIO master port info : ID of RapidIO interface : Destination ID of target device : 16-bit info field of RapidIO doorbell message
Sends a MPC85xx doorbell message. Returns %0 on success or %-EINVAL on failure.
Definition at line 621 of file fsl_rmu.c.
void fsl_rio_port_error_handler |
( |
int |
offset | ) |
|
fsl_rio_port_write_init - MPC85xx port write interface init : Master port implementing the port write unit
Initializes port write unit hardware and DMA buffer ring. Called from fsl_rio_setup(). Returns %0 on success or %-ENOMEM on failure.
Definition at line 540 of file fsl_rmu.c.
fsl_rio_pw_enable - enable/disable port-write interface init : Master port implementing the port write unit : 1=enable; 0=disable port-write message handling
Definition at line 515 of file fsl_rmu.c.