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

Function regval

util/superiotool/superiotool.c:29–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29uint8_t regval(uint16_t port, uint8_t reg)
30{
31 OUTB(reg, port);
32 return INB(port + ((port == 0x3bd) ? 2 : 1)); /* 0x3bd is special. */
33}
34
35void regwrite(uint16_t port, uint8_t reg, uint8_t val)
36{

Callers 15

probe_idregs_amdFunction · 0.85
probe_idregs_smsc_helperFunction · 0.85
probe_idregs_ite_helperFunction · 0.85
detect_ast_superioFunction · 0.85
probe_idregs_fintekFunction · 0.85
probe_idregs_exarFunction · 0.85
probe_idregs_aliFunction · 0.85
set_extra_selectorFunction · 0.85
dump_regsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected