Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
54 | pj | 1 | #include <kernel/log.h> |
2 | #include <ll/i386/hw-instr.h> |
||
3 | #include <ll/i386/hw-io.h> |
||
4 | #include <ll/sys/types.h> |
||
5 | |||
6 | void port_rep_outb(unsigned char* string, int length, int port) |
||
7 | { |
||
8 | printk(KERN_INFO "port_rep_outb: NOT SUPPORTED !!\n"); |
||
9 | } |
||
10 | |||
11 | void port_out(int value, int port) |
||
12 | { |
||
13 | outp(port,(BYTE)value); |
||
14 | } |
||
15 | |||
16 | void port_outw(int value, int port) |
||
17 | { |
||
18 | outpw(port,(WORD)value); |
||
19 | } |
||
20 | |||
21 | void port_outl(int value, int port) |
||
22 | { |
||
23 | outpd(port,(DWORD)value); |
||
24 | } |
||
25 | |||
26 | int port_in(int port) |
||
27 | { |
||
28 | return (WORD)inp(port); |
||
29 | } |
||
30 | |||
31 | int port_inw(int port) |
||
32 | { |
||
33 | return (WORD)inpw(port); |
||
34 | } |
||
35 | |||
36 | int port_inl(int port) |
||
37 | { |
||
38 | return (WORD)inpd(port); |
||
39 | } |
||
40 |