Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/ntb/ntb_hw/ntb_hw_intel.c
Show First 20 Lines • Show All 1,303 Lines • ▼ Show 20 Lines | db_ioread(struct ntb_softc *ntb, uint64_t regoff) | ||||
switch (ntb->type) { | switch (ntb->type) { | ||||
case NTB_ATOM: | case NTB_ATOM: | ||||
case NTB_XEON_GEN3: | case NTB_XEON_GEN3: | ||||
return (intel_ntb_reg_read(8, regoff)); | return (intel_ntb_reg_read(8, regoff)); | ||||
case NTB_XEON_GEN1: | case NTB_XEON_GEN1: | ||||
return (intel_ntb_reg_read(2, regoff)); | return (intel_ntb_reg_read(2, regoff)); | ||||
} | } | ||||
__assert_unreachable(); | |||||
} | } | ||||
static inline void | static inline void | ||||
db_iowrite(struct ntb_softc *ntb, uint64_t regoff, uint64_t val) | db_iowrite(struct ntb_softc *ntb, uint64_t regoff, uint64_t val) | ||||
{ | { | ||||
KASSERT((val & ~ntb->db_valid_mask) == 0, | KASSERT((val & ~ntb->db_valid_mask) == 0, | ||||
("%s: Invalid bits 0x%jx (valid: 0x%jx)", __func__, | ("%s: Invalid bits 0x%jx (valid: 0x%jx)", __func__, | ||||
▲ Show 20 Lines • Show All 2,201 Lines • Show Last 20 Lines |