#include <linux/device.h>
#include <linux/mod_devicetable.h>
#include <linux/types.h>
Go to the source code of this file.
|
#define | AP_DEVICES 64 /* Number of AP devices. */ |
|
#define | AP_DOMAINS 16 /* Number of AP domains. */ |
|
#define | AP_MAX_RESET 90 /* Maximum number of resets. */ |
|
#define | AP_RESET_TIMEOUT (HZ/2) /* Time in ticks for reset timeouts. */ |
|
#define | AP_CONFIG_TIME 30 /* Time in seconds between AP bus rescans. */ |
|
#define | AP_POLL_TIME 1 /* Time in ticks between receive polls. */ |
|
#define | AP_MKQID(_device, _queue) (((_device) & 63) << 8 | ((_queue) & 15)) |
|
#define | AP_QID_DEVICE(_qid) (((_qid) >> 8) & 63) |
|
#define | AP_QID_QUEUE(_qid) ((_qid) & 15) |
|
#define | AP_QUEUE_STATUS_INVALID { 1, 1, 1, 0xF, 1, 0xFF, 0xFFFF } |
|
#define | AP_MAX_BITS 31 |
|
#define | AP_RESPONSE_NORMAL 0x00 |
|
#define | AP_RESPONSE_Q_NOT_AVAIL 0x01 |
|
#define | AP_RESPONSE_RESET_IN_PROGRESS 0x02 |
|
#define | AP_RESPONSE_DECONFIGURED 0x03 |
|
#define | AP_RESPONSE_CHECKSTOPPED 0x04 |
|
#define | AP_RESPONSE_BUSY 0x05 |
|
#define | AP_RESPONSE_INVALID_ADDRESS 0x06 |
|
#define | AP_RESPONSE_OTHERWISE_CHANGED 0x07 |
|
#define | AP_RESPONSE_Q_FULL 0x10 |
|
#define | AP_RESPONSE_NO_PENDING_REPLY 0x10 |
|
#define | AP_RESPONSE_INDEX_TOO_BIG 0x11 |
|
#define | AP_RESPONSE_NO_FIRST_PART 0x13 |
|
#define | AP_RESPONSE_MESSAGE_TOO_BIG 0x15 |
|
#define | AP_RESPONSE_REQ_FAC_NOT_INST 0x16 |
|
#define | AP_DEVICE_TYPE_PCICC 3 |
|
#define | AP_DEVICE_TYPE_PCICA 4 |
|
#define | AP_DEVICE_TYPE_PCIXCC 5 |
|
#define | AP_DEVICE_TYPE_CEX2A 6 |
|
#define | AP_DEVICE_TYPE_CEX2C 7 |
|
#define | AP_DEVICE_TYPE_CEX3A 8 |
|
#define | AP_DEVICE_TYPE_CEX3C 9 |
|
#define | AP_DEVICE_TYPE_CEX4 10 |
|
#define | AP_FUNC_MEX4K 1 |
|
#define | AP_FUNC_CRT4K 2 |
|
#define | AP_FUNC_COPRO 3 |
|
#define | AP_FUNC_ACCEL 4 |
|
#define | AP_RESET_IGNORE 0 /* request timeout will be ignored */ |
|
#define | AP_RESET_ARMED 1 /* request timeout timer is active */ |
|
#define | AP_RESET_DO 2 /* AP reset required */ |
|
#define | to_ap_drv(x) container_of((x), struct ap_driver, driver) |
|
#define | to_ap_dev(x) container_of((x), struct ap_device, device) |
|
#define | AP_DEVICE(dt) |
|
|
int | ap_driver_register (struct ap_driver *, struct module *, char *) |
|
void | ap_driver_unregister (struct ap_driver *) |
|
int | ap_send (ap_qid_t, unsigned long long, void *, size_t) |
|
int | ap_recv (ap_qid_t, unsigned long long *, void *, size_t) |
|
void | ap_queue_message (struct ap_device *ap_dev, struct ap_message *ap_msg) |
|
void | ap_cancel_message (struct ap_device *ap_dev, struct ap_message *ap_msg) |
|
void | ap_flush_queue (struct ap_device *ap_dev) |
|
void | ap_bus_force_rescan (void) |
|
int | ap_module_init (void) |
|
void | ap_module_exit (void) |
|
#define AP_DEVICE_TYPE_CEX2A 6 |
#define AP_DEVICE_TYPE_CEX2C 7 |
#define AP_DEVICE_TYPE_CEX3A 8 |
#define AP_DEVICE_TYPE_CEX3C 9 |
#define AP_DEVICE_TYPE_CEX4 10 |
#define AP_DEVICE_TYPE_PCICA 4 |
#define AP_DEVICE_TYPE_PCICC 3 |
#define AP_DEVICE_TYPE_PCIXCC 5 |
#define AP_DEVICES 64 /* Number of AP devices. */ |
#define AP_DOMAINS 16 /* Number of AP domains. */ |
#define AP_MAX_RESET 90 /* Maximum number of resets. */ |
#define AP_MKQID |
( |
|
_device, |
|
|
|
_queue |
|
) |
| (((_device) & 63) << 8 | ((_queue) & 15)) |
#define AP_POLL_TIME 1 /* Time in ticks between receive polls. */ |
#define AP_QID_DEVICE |
( |
|
_qid | ) |
(((_qid) >> 8) & 63) |
#define AP_QID_QUEUE |
( |
|
_qid | ) |
((_qid) & 15) |
#define AP_QUEUE_STATUS_INVALID { 1, 1, 1, 0xF, 1, 0xFF, 0xFFFF } |
#define AP_RESET_DO 2 /* AP reset required */ |
#define AP_RESPONSE_BUSY 0x05 |
#define AP_RESPONSE_CHECKSTOPPED 0x04 |
#define AP_RESPONSE_DECONFIGURED 0x03 |
#define AP_RESPONSE_INDEX_TOO_BIG 0x11 |
#define AP_RESPONSE_INVALID_ADDRESS 0x06 |
#define AP_RESPONSE_MESSAGE_TOO_BIG 0x15 |
#define AP_RESPONSE_NO_FIRST_PART 0x13 |
#define AP_RESPONSE_NO_PENDING_REPLY 0x10 |
#define AP_RESPONSE_NORMAL 0x00 |
#define AP_RESPONSE_OTHERWISE_CHANGED 0x07 |
#define AP_RESPONSE_Q_FULL 0x10 |
#define AP_RESPONSE_Q_NOT_AVAIL 0x01 |
#define AP_RESPONSE_REQ_FAC_NOT_INST 0x16 |
#define AP_RESPONSE_RESET_IN_PROGRESS 0x02 |
The ap_qid_t identifier of an ap queue. It contains a 6 bit device index and a 4 bit queue index (domain).
Definition at line 46 of file ap_bus.h.
ap_cancel_message(): Cancel a crypto request. : The AP device that has the message queued : The message that is to be removed
Cancel a crypto request. This is done by removing the request from the device pending or request queue. Note that the request stays on the AP queue. When it finishes the message reply will be discarded because the psmid can't be found.
Definition at line 1644 of file ap_bus.c.
ap_modules_exit(): The module termination code
Terminates the module.
Definition at line 1978 of file ap_bus.c.