summaryrefslogtreecommitdiffstats
path: root/sys/pci/intpm.c
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1999-10-28 08:06:59 +0000
committerdfr <dfr@FreeBSD.org>1999-10-28 08:06:59 +0000
commit9cb75a305a01e1fa55fcf0f8cf88bcca2a983fe9 (patch)
treefcf7579624a735e2219df734aad65790a141381b /sys/pci/intpm.c
parentd75f84a056b89bcd2baad45ac0e894c0bae3ff19 (diff)
downloadFreeBSD-src-9cb75a305a01e1fa55fcf0f8cf88bcca2a983fe9.zip
FreeBSD-src-9cb75a305a01e1fa55fcf0f8cf88bcca2a983fe9.tar.gz
Fix some resource allocation peculiarities of the intpm device.
Diffstat (limited to 'sys/pci/intpm.c')
-rw-r--r--sys/pci/intpm.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/sys/pci/intpm.c b/sys/pci/intpm.c
index e90466b..4e3acd7 100644
--- a/sys/pci/intpm.c
+++ b/sys/pci/intpm.c
@@ -663,21 +663,9 @@ intpm_attach(device_t dev)
}
rid=PCI_BASE_ADDR_SMB;
-#if 0
res=bus_alloc_resource(dev,SYS_RES_IOPORT,&rid,
0,~0,1,RF_ACTIVE);
if(res==NULL){
- device_printf(dev,"IO FAILED Trying Memory\n");
- res=bus_alloc_resource(dev,SYS_RES_MEMORY,&rid,0,~0,
- 1,RF_ACTIVE);
- }
-#else
- /*Do as I tell!*/
- value=pci_read_config(dev,rid,4);
- res=bus_alloc_resource(dev,SYS_RES_IOPORT,&rid,value&(~1),
- (value&(~1))+256,256,RF_ACTIVE);
-#endif
- if(res==NULL){
device_printf(dev,"Could not allocate Bus space\n");
return ENXIO;
}
@@ -744,6 +732,7 @@ intpm_probe(device_t dev)
++ep;
if(ep->desc!=NULL){
device_set_desc(dev,ep->desc);
+ bus_set_resource(dev,SYS_RES_IRQ,0,9,1); /* XXX setup intr resource */
return 0;
}else{
return ENXIO;
OpenPOWER on IntegriCloud