|
Lines 1692-1697
Link Here
|
| 1692 |
return (ENXIO); |
1692 |
return (ENXIO); |
| 1693 |
} |
1693 |
} |
| 1694 |
|
1694 |
|
|
|
1695 |
static struct isa_pnp_id lpc_ids[] = { |
| 1696 |
{ 0x0004d041, "Standard parallel printer port" }, /* PNP0400 */ |
| 1697 |
{ 0x0104d041, "ECP parallel printer port" }, /* PNP0401 */ |
| 1698 |
{ 0 } |
| 1699 |
}; |
| 1700 |
|
| 1695 |
static int |
1701 |
static int |
| 1696 |
ppc_probe(device_t dev) |
1702 |
ppc_probe(device_t dev) |
| 1697 |
{ |
1703 |
{ |
|
Lines 1703-1716
Link Here
|
| 1703 |
int error; |
1709 |
int error; |
| 1704 |
u_long port; |
1710 |
u_long port; |
| 1705 |
|
1711 |
|
| 1706 |
/* If we are a PNP device, abort. Otherwise we attach to *everthing* */ |
|
|
| 1707 |
if (isa_get_logicalid(dev)) |
| 1708 |
return ENXIO; |
| 1709 |
|
| 1710 |
parent = device_get_parent(dev); |
1712 |
parent = device_get_parent(dev); |
| 1711 |
|
1713 |
|
| 1712 |
/* XXX shall be set after detection */ |
1714 |
error = ISA_PNP_PROBE(parent, dev, lpc_ids); |
| 1713 |
device_set_desc(dev, "Parallel port"); |
1715 |
if (error == ENXIO) |
|
|
1716 |
return (ENXIO); |
| 1717 |
else if (error != 0) /* XXX shall be set after detection */ |
| 1718 |
device_set_desc(dev, "Parallel port"); |
| 1714 |
|
1719 |
|
| 1715 |
/* |
1720 |
/* |
| 1716 |
* Allocate the ppc_data structure. |
1721 |
* Allocate the ppc_data structure. |