e1d867b686
This patch adds support for executing multiple concurrent requests on different devices on the same AHCI controller. The libdriver library has been extended to include a generic multithreading interface, and the AHCI driver has been extended to make use of this interface. The original version of this code has been written by Arne Welzel.
12 lines
373 B
C
12 lines
373 B
C
#ifndef _DRIVER_MQ_H
|
|
#define _DRIVER_MQ_H
|
|
|
|
#define DRIVER_MQ_SINGLE 0 /* thread ID for single-threading */
|
|
|
|
_PROTOTYPE( void driver_mq_init, (void) );
|
|
_PROTOTYPE( int driver_mq_enqueue, (thread_id_t thread_id, const message *mess,
|
|
int ipc_status) );
|
|
_PROTOTYPE( int driver_mq_dequeue, (thread_id_t thread_id, message *mess,
|
|
int *ipc_status) );
|
|
|
|
#endif /* _DRIVER_MQ_H */
|