Skip to content

Commit 937427c

Browse files
dwrobelgrandixximo
authored andcommitted
Remove direct usage of inb(), outb()
Signed-off-by: Damian Wrobel <dwrobel@ertelnet.rybnik.pl>
1 parent b872402 commit 937427c

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

src/hal/drivers/hal_evoreg.c

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -66,20 +66,9 @@
6666
#include <rtapi_ctype.h> /* isspace() */
6767
#include <rtapi.h> /* RTAPI realtime OS API */
6868
#include <rtapi_app.h> /* RTAPI realtime module decls */
69+
#include <rtapi_io.h> /* rtapi_inb(), rtapi_outb() */
6970
#include <hal.h> /* HAL public API decls */
7071

71-
/* If FASTIO is defined, uses outb() and inb() from <asm.io>,
72-
instead of rtapi_outb() and rtapi_inb() - the <asm.io> ones
73-
are inlined, and save a microsecond or two (on my 233MHz box)
74-
*/
75-
#define FASTIO
76-
77-
#ifdef FASTIO
78-
#define rtapi_inb inb
79-
#define rtapi_outb outb
80-
#include <asm/io.h>
81-
#endif
82-
8372
/* module information */
8473
MODULE_AUTHOR("Martin Kuhnle");
8574
MODULE_DESCRIPTION("SIEMENS-EVOREG Driver for EMC HAL");

0 commit comments

Comments
 (0)