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:
Axel Dörfler 2004-09-04 17:47:08 +00:00
parent f363b7231f
commit 33657fc8ac
2 changed files with 6 additions and 5 deletions

View File

@ -41,7 +41,7 @@ IORequest::IORequest(void *_cookie, off_t _offset, const void *_buffer, size_t _
// #pragma mark -
IOScheduler::IOScheduler(const char *name, device_hooks *hooks)
IOScheduler::IOScheduler(const char *name, pnp_devfs_driver_info *hooks)
:
fDeviceHooks(hooks)
{

View File

@ -8,6 +8,7 @@
#include <OS.h>
#include <Drivers.h>
#include <pnp_devfs.h>
#include <util/DoublyLinkedList.h>
#include <lock.h>
@ -35,7 +36,7 @@ class IORequest {
class IOScheduler {
public:
IOScheduler(const char *name, device_hooks *hooks);
IOScheduler(const char *name, pnp_devfs_driver_info *hooks);
~IOScheduler();
status_t InitCheck() const;
@ -50,9 +51,9 @@ class IOScheduler {
static int32 scheduler(void *);
private:
device_hooks *fDeviceHooks;
mutex fLock;
thread_id fThread;
pnp_devfs_driver_info *fDeviceHooks;
mutex fLock;
thread_id fThread;
DoublyLinked::List<IORequest, &IORequest::link> fRequests;
};