From 03b2717394590991500ddee4a4be7ddc12d55f49 Mon Sep 17 00:00:00 2001 From: David Reid Date: Fri, 12 Jul 2002 20:20:37 +0000 Subject: [PATCH] We have iovec's now and add the api version define. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@149 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/kernel/drivers.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/headers/private/kernel/drivers.h b/headers/private/kernel/drivers.h index 601299098e..a10bf1cf32 100755 --- a/headers/private/kernel/drivers.h +++ b/headers/private/kernel/drivers.h @@ -8,6 +8,7 @@ #include #include +#include /* --- these hooks are how the kernel accesses the device @@ -29,12 +30,12 @@ typedef status_t (*device_select_hook) (void *cookie, uint8 event, uint32 ref, selectsync *sync); typedef status_t (*device_deselect_hook) (void *cookie, uint8 event, selectsync *sync); -/* XXX - no iovec support yet typedef status_t (*device_readv_hook) (void *cookie, off_t position, const iovec *vec, size_t count, size_t *numBytes); typedef status_t (*device_writev_hook) (void *cookie, off_t position, const iovec *vec, size_t count, size_t *numBytes); -*/ + +#define B_CUR_DRIVER_API_VERSION 2 /* --- the device_hooks structure is a descriptor for the device, giving its @@ -50,9 +51,8 @@ typedef struct { device_write_hook write; /* writes to the device */ device_select_hook select; /* start select */ device_deselect_hook deselect; /* stop select */ -/* XXX - no iovec support yet */ -// device_readv_hook readv; /* scatter-gather read from the device */ -// device_writev_hook writev; /* scatter-gather write to the device */ + device_readv_hook readv; /* scatter-gather read from the device */ + device_writev_hook writev; /* scatter-gather write to the device */ } device_hooks; status_t init_hardware(void);