From 5fd2ad26d3152092f8feb21081b9c44112b15b29 Mon Sep 17 00:00:00 2001 From: Rudolf Cornelissen Date: Thu, 2 Sep 2004 08:49:40 +0000 Subject: [PATCH] rewritten ISA coldstart script cmd's to actually use ISA I/O. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8793 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/graphics/nvidia/nv_macros.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/headers/private/graphics/nvidia/nv_macros.h b/headers/private/graphics/nvidia/nv_macros.h index d8e3283c01..4d3fb9ee4f 100644 --- a/headers/private/graphics/nvidia/nv_macros.h +++ b/headers/private/graphics/nvidia/nv_macros.h @@ -737,6 +737,12 @@ #define CFGR(A) (nv_pci_access.offset=NVCFG_##A, ioctl(fd,NV_GET_PCI, &nv_pci_access,sizeof(nv_pci_access)), nv_pci_access.value) #define CFGW(A,B) (nv_pci_access.offset=NVCFG_##A, nv_pci_access.value = B, ioctl(fd,NV_SET_PCI,&nv_pci_access,sizeof(nv_pci_access))) +/* read and write from ISA I/O space */ +#define ISAWB(A,B)(nv_isa_access.adress=A, nv_isa_access.data = (uint8)B, nv_isa_access.size = 1, ioctl(fd,NV_ISA_OUT, &nv_isa_access,sizeof(nv_isa_access))) +#define ISAWW(A,B)(nv_isa_access.adress=A, nv_isa_access.data = B, nv_isa_access.size = 2, ioctl(fd,NV_ISA_OUT, &nv_isa_access,sizeof(nv_isa_access))) +#define ISARB(A) (nv_isa_access.adress=A, ioctl(fd,NV_ISA_IN, &nv_isa_access,sizeof(nv_isa_access)), (uint8)nv_isa_access.data) +#define ISARW(A) (nv_isa_access.adress=A, ioctl(fd,NV_ISA_IN, &nv_isa_access,sizeof(nv_isa_access)), nv_isa_access.data) + /* read and write from the dac registers */ #define DACR(A) (NV_REG32(NVDAC_##A)) #define DACW(A,B) (NV_REG32(NVDAC_##A)=B)