Home | History | Annotate | Download | only in x86

Lines Matching refs:port

55 static bool try_outb(unsigned short port)
61 asm volatile ("outb %%al, %w[port]"
62 : : [port] "Nd" (port), "a" (0));
68 static void expect_ok(unsigned short port)
70 if (!try_outb(port)) {
71 printf("[FAIL]\toutb to 0x%02hx failed\n", port);
75 printf("[OK]\toutb to 0x%02hx worked\n", port);
78 static void expect_gp(unsigned short port)
80 if (try_outb(port)) {
81 printf("[FAIL]\toutb to 0x%02hx worked\n", port);
85 printf("[OK]\toutb to 0x%02hx failed\n", port);