mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-29 13:15:05 +00:00
Make it build, copy from dev/sio/sio.c:
isa_set_flags -> device_set_flags isa_get_flags -> device_get_flags
This commit is contained in:
parent
2170da8f8b
commit
213fcefef2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=51088
|
@ -564,8 +564,8 @@ card_intr(struct pccard_devinfo *devi)
|
|||
}
|
||||
#endif /* NCARD > 0 */
|
||||
|
||||
#define SET_FLAG(dev, bit) isa_set_flags(dev, isa_get_flags(dev) | (bit))
|
||||
#define CLR_FLAG(dev, bit) isa_set_flags(dev, isa_get_flags(dev) & ~(bit))
|
||||
#define SET_FLAG(dev, bit) device_set_flags(dev, device_get_flags(dev) | (bit))
|
||||
#define CLR_FLAG(dev, bit) device_set_flags(dev, device_get_flags(dev) & ~(bit))
|
||||
|
||||
static struct isa_pnp_id sio_ids[] = {
|
||||
{0x0005d041, "Standard PC COM port"}, /* PNP0500 */
|
||||
|
@ -591,7 +591,7 @@ sioprobe(dev)
|
|||
u_char mcr_image;
|
||||
int result;
|
||||
device_t xdev;
|
||||
u_int flags = isa_get_flags(dev);
|
||||
u_int flags = device_get_flags(dev);
|
||||
int rid;
|
||||
struct resource *port;
|
||||
|
||||
|
@ -912,7 +912,7 @@ sioattach(dev)
|
|||
Port_t iobase;
|
||||
int unit;
|
||||
void *ih;
|
||||
u_int flags = isa_get_flags(dev);
|
||||
u_int flags = device_get_flags(dev);
|
||||
int rid;
|
||||
struct resource *port;
|
||||
|
||||
|
|
|
@ -564,8 +564,8 @@ card_intr(struct pccard_devinfo *devi)
|
|||
}
|
||||
#endif /* NCARD > 0 */
|
||||
|
||||
#define SET_FLAG(dev, bit) isa_set_flags(dev, isa_get_flags(dev) | (bit))
|
||||
#define CLR_FLAG(dev, bit) isa_set_flags(dev, isa_get_flags(dev) & ~(bit))
|
||||
#define SET_FLAG(dev, bit) device_set_flags(dev, device_get_flags(dev) | (bit))
|
||||
#define CLR_FLAG(dev, bit) device_set_flags(dev, device_get_flags(dev) & ~(bit))
|
||||
|
||||
static struct isa_pnp_id sio_ids[] = {
|
||||
{0x0005d041, "Standard PC COM port"}, /* PNP0500 */
|
||||
|
@ -591,7 +591,7 @@ sioprobe(dev)
|
|||
u_char mcr_image;
|
||||
int result;
|
||||
device_t xdev;
|
||||
u_int flags = isa_get_flags(dev);
|
||||
u_int flags = device_get_flags(dev);
|
||||
int rid;
|
||||
struct resource *port;
|
||||
|
||||
|
@ -912,7 +912,7 @@ sioattach(dev)
|
|||
Port_t iobase;
|
||||
int unit;
|
||||
void *ih;
|
||||
u_int flags = isa_get_flags(dev);
|
||||
u_int flags = device_get_flags(dev);
|
||||
int rid;
|
||||
struct resource *port;
|
||||
|
||||
|
|
Loading…
Reference in a new issue