![Motorola LA-51XX Скачать руководство пользователя страница 15](http://html.mh-extra.com/html/motorola/la-51xx/la-51xx_driver-programmers-manual_243877015.webp)
SHoC Driver Design
2-7
2.2.2.1 Flow Description
1. When the driver receives the request from the getoid application through Netlink Interface, it frames the
request in the
s_sm_conf
format using
sm_drv_get()
function:
struct s_sm_conf
{
uint16_t flags;
uint16_t length;
uint32_t oid;
uint8_t *data;
};
2. The
s_sm_conf
structure is passed to
sm_drv_conf()
, which sets the PIMFOR Header and reads the value
of flags set and checks if the packet is for PIMFOR_OP_SET or PIMFOR_OP_GET
3. The structure is added into Tx Control queue after converting into fragment
4. Increments
Driver_Current_fragment
queue value. This queue pointer is used to maintain
synchronization between device and host. Driver interrupts the device for the packet in the transmit
control queue
5. The driver suspends the application until a response is received from the firmware:
a. Put on the sleep queue.
b. When response is received, need to distinguish whether it is a TRAP or a response to the GET
operation.
c. If it is a response, wake up the sleeping process.
6. Pass the response to the application.
Содержание LA-51XX
Страница 1: ... LA 51XX Compact Flash Adapter Driver Programmer s Guide ...
Страница 4: ...TOC 2 LA 51XX Compact Flash Adapter Driver Programmer s Guide ...
Страница 8: ...1 4 LA 51XX Compact Flash Adapter Driver Programmer s Guide ...
Страница 25: ...SHoC Driver Design 2 17 2 5 2 Management Path APIs ...
Страница 26: ...2 18 LA 51XX Compact Flash Adapter Driver Programmer s Guide ...
Страница 30: ...4 2 LA 51XX Compact Flash Adapter Driver Programmer s Guide ...
Страница 31: ......