MCPcopy Create free account
hub / github.com/coreboot/coreboot / inb

Function inb

util/ectool/ec.c:18–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16#if defined __NetBSD__ || defined __OpenBSD__
17#include <machine/sysarch.h>
18static uint8_t inb(unsigned port)
19{
20 uint8_t data;
21 __asm volatile("inb %w1,%0" : "=a" (data) : "d" (port));
22 return data;
23}
24static __inline void outb(uint8_t data, unsigned port)
25{
26 __asm volatile("outb %0,%w1" : : "a" (data), "d" (port));

Callers 5

send_ec_commandFunction · 0.70
send_ec_dataFunction · 0.70
recv_ec_dataFunction · 0.70
ec_idx_readFunction · 0.70
pmh7_register_readFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected