From 4f91f115094e3888dc1f4d321799df7a06a8b69a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 8 Jun 2004 06:32:02 +0000 Subject: [PATCH] Now includes the old ISA.h header as well; removed doubled definitions. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7842 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/os/drivers/bus/ISA.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/headers/os/drivers/bus/ISA.h b/headers/os/drivers/bus/ISA.h index 7e5f817732..1cc3faf291 100644 --- a/headers/os/drivers/bus/ISA.h +++ b/headers/os/drivers/bus/ISA.h @@ -9,13 +9,13 @@ This is an improper name - this bus manager uses the PnP manager to load device drivers, but calling it ISA PnP manager would be wrong as ISA PnP information isn't used at all. - + All ISA drivers must be Universal driver (see pnp_manager.h), as they are all direct children of the ISA bus node. Having an ISA PnP bus manager (which we don't), one node would be created per ISA device and thus you could write Specific drivers, but under normal ISA we don't even know how many devices are there, therefore the Universal driver trick. - + Apart from the loading, the main change is the resource manager. In a driver, you must allocate the resources before registering the node and deallocate it when your node is removed and if the driver isn't loaded at @@ -28,12 +28,7 @@ #define _ISA2_H #include - - -enum { - B_8_BIT_TRANSFER, - B_16_BIT_TRANSFER -}; +#include // maximum size of one dma transfer // (in bytes for 8 bit transfer, in words for 16 bit transfer)