From 6e6488d678ce97692e569047d2f142babdf35e03 Mon Sep 17 00:00:00 2001 From: Rudolf Cornelissen Date: Sat, 21 Jan 2006 17:05:26 +0000 Subject: [PATCH] driver now enforces correct order of use of INIT_ACCELERANT and CLONE_ACCELERANT: bailing out with B_NOT_ALLOWED if incorrect use is detected. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16027 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/graphics/matrox/DriverInterface.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/headers/private/graphics/matrox/DriverInterface.h b/headers/private/graphics/matrox/DriverInterface.h index f978fc6d36..89647ac792 100644 --- a/headers/private/graphics/matrox/DriverInterface.h +++ b/headers/private/graphics/matrox/DriverInterface.h @@ -94,9 +94,9 @@ typedef struct settings { // apsed, see comments in mga.settings bool greensync; } settings; -/*shared info*/ +/* shared info */ typedef struct { - /*a few ID things*/ + /* a few ID things */ uint16 vendor_id; /* PCI vendor ID, from pci_info */ uint16 device_id; /* PCI device ID, from pci_info */ uint8 revision; /* PCI device revsion, from pci_info */ @@ -104,6 +104,9 @@ typedef struct { uint8 device; /* PCI device number on bus, from pci_info */ uint8 function; /* PCI function number in device, from pci_info */ + /* used to return status for INIT_ACCELERANT and CLONE_ACCELERANT */ + bool accelerant_in_use; + /* bug workaround for 4.5.0 */ uint32 use_clone_bugfix; /*for 4.5.0, cloning of physical memory does not work*/ uint32 * clone_bugfix_regs;