From 7334a55e1dcebfee8228324c383618cf198ea9b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Hord=C3=A9?= Date: Tue, 13 Mar 2007 20:36:31 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20ajouts=20pour=20la=20d=C3=A9tection=20a?= =?UTF-8?q?vanc=C3=A9e=20de=20p=C3=A9riph=C3=A9rique=20PCI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/pci.h | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/include/pci.h b/include/pci.h index 380875e..936321d 100644 --- a/include/pci.h +++ b/include/pci.h @@ -1,4 +1,4 @@ -pci Struc +struc pcidata vendor dw 0 ;vendor ID (read-only), FFFFh returned if requested device non-existent device dw 0 ;device ID (read-only) command dw 0 ;command register @@ -6,7 +6,7 @@ status dw 0 ;status register revision db 0 ;revision ID interface db 0 ;programming interface subclass db 0 ;sub-class -class db 0 ;class code +class db 0 ;class code cache db 0 ;cache line size timer db 0 ;latency timer typed db 0 ;header type @@ -16,4 +16,19 @@ typed db 0 ;header type ;02h PCI-to-CardBus bridge ;bit 7: multi-function device result db 0 ;Built-In Self-Test result -pci Ends +ends pcidata + +struc pciinf +version_major db 0 +version_minor db 0 +types db 0 +maxbus db 0 +ends pciinf + +multifunction equ 80h +othercard equ 00h +pci2pcibridge equ 01h +pci2pcicard equ 02h + +config1addr equ 0CF8h +config1data equ 0CFCh