mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-19 15:33:56 +00:00
Remove support for SYS_RES_DRQ.
This commit is contained in:
parent
ec3c90f3c8
commit
01422bafc6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=204904
@ -78,7 +78,7 @@ struct nexus_device {
|
||||
|
||||
#define DEVTONX(dev) ((struct nexus_device *)device_get_ivars(dev))
|
||||
|
||||
static struct rman irq_rman, drq_rman, port_rman, mem_rman;
|
||||
static struct rman irq_rman, port_rman, mem_rman;
|
||||
|
||||
static int nexus_probe(device_t);
|
||||
static int nexus_attach(device_t);
|
||||
@ -189,21 +189,6 @@ nexus_probe(device_t dev)
|
||||
irq_rman.rm_start, irq_rman.rm_end))
|
||||
panic("nexus_probe irq_rman");
|
||||
|
||||
/*
|
||||
* ISA DMA on PCI systems is implemented in the ISA part of each
|
||||
* PCI->ISA bridge and the channels can be duplicated if there are
|
||||
* multiple bridges. (eg: laptops with docking stations)
|
||||
*/
|
||||
drq_rman.rm_start = 0;
|
||||
drq_rman.rm_end = 7;
|
||||
drq_rman.rm_type = RMAN_ARRAY;
|
||||
drq_rman.rm_descr = "DMA request lines";
|
||||
/* XXX drq 0 not available on some machines */
|
||||
if (rman_init(&drq_rman)
|
||||
|| rman_manage_region(&drq_rman,
|
||||
drq_rman.rm_start, drq_rman.rm_end))
|
||||
panic("nexus_probe drq_rman");
|
||||
|
||||
/*
|
||||
* However, IO ports and Memory truely are global at this level,
|
||||
* as are APIC interrupts (however many IO APICS there turn out
|
||||
@ -355,10 +340,6 @@ nexus_alloc_resource(device_t bus, device_t child, int type, int *rid,
|
||||
rm = &irq_rman;
|
||||
break;
|
||||
|
||||
case SYS_RES_DRQ:
|
||||
rm = &drq_rman;
|
||||
break;
|
||||
|
||||
case SYS_RES_IOPORT:
|
||||
rm = &port_rman;
|
||||
break;
|
||||
@ -591,4 +572,3 @@ nexus_settime(device_t dev, struct timespec *ts)
|
||||
tm.tm_mday = ct.day;
|
||||
return (efi_set_time(&tm));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user