No longer gets the old device_hooks but a pnp_devfs_driver_hooks structure
to be able to call device functions. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8850 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
f363b7231f
commit
33657fc8ac
@ -41,7 +41,7 @@ IORequest::IORequest(void *_cookie, off_t _offset, const void *_buffer, size_t _
|
|||||||
// #pragma mark -
|
// #pragma mark -
|
||||||
|
|
||||||
|
|
||||||
IOScheduler::IOScheduler(const char *name, device_hooks *hooks)
|
IOScheduler::IOScheduler(const char *name, pnp_devfs_driver_info *hooks)
|
||||||
:
|
:
|
||||||
fDeviceHooks(hooks)
|
fDeviceHooks(hooks)
|
||||||
{
|
{
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
#include <OS.h>
|
#include <OS.h>
|
||||||
#include <Drivers.h>
|
#include <Drivers.h>
|
||||||
|
#include <pnp_devfs.h>
|
||||||
|
|
||||||
#include <util/DoublyLinkedList.h>
|
#include <util/DoublyLinkedList.h>
|
||||||
#include <lock.h>
|
#include <lock.h>
|
||||||
@ -35,7 +36,7 @@ class IORequest {
|
|||||||
|
|
||||||
class IOScheduler {
|
class IOScheduler {
|
||||||
public:
|
public:
|
||||||
IOScheduler(const char *name, device_hooks *hooks);
|
IOScheduler(const char *name, pnp_devfs_driver_info *hooks);
|
||||||
~IOScheduler();
|
~IOScheduler();
|
||||||
|
|
||||||
status_t InitCheck() const;
|
status_t InitCheck() const;
|
||||||
@ -50,9 +51,9 @@ class IOScheduler {
|
|||||||
static int32 scheduler(void *);
|
static int32 scheduler(void *);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
device_hooks *fDeviceHooks;
|
pnp_devfs_driver_info *fDeviceHooks;
|
||||||
mutex fLock;
|
mutex fLock;
|
||||||
thread_id fThread;
|
thread_id fThread;
|
||||||
DoublyLinked::List<IORequest, &IORequest::link> fRequests;
|
DoublyLinked::List<IORequest, &IORequest::link> fRequests;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user