1 /* SPDX-License-Identifier: GPL-2.0-or-later */
4 #include <device/pnp_ops.h>
5 #include <device/pnp_def.h>
8 static void wpcm450_pnp_set_logical_device(u8 dev
, u16 port
)
14 static void wpcm450_pnp_set_enable(u8 dev
, u16 port
, u8 enable
)
20 static void wpcm450_pnp_set_iobase(u8 dev
, u16 port
, u8 index
, u16 iobase
)
23 outb((iobase
>>8)&0xFF, port
+1);
25 outb(iobase
&0xFF, port
+1);
28 void wpcm450_enable_dev(u8 dev
, u16 port
, u16 iobase
)
30 wpcm450_pnp_set_logical_device(dev
, port
);
31 wpcm450_pnp_set_enable(dev
, port
, 0);
33 wpcm450_pnp_set_iobase(dev
, port
, PNP_IDX_IO0
, iobase
);
34 wpcm450_pnp_set_enable(dev
, port
, 1);