Changeset View
Changeset View
Standalone View
Standalone View
sys/mips/mediatek/mtk_pcie.c
| Show First 20 Lines • Show All 588 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| static inline uint32_t | static inline uint32_t | ||||
| mtk_pci_make_addr(int bus, int slot, int func, int reg) | mtk_pci_make_addr(int bus, int slot, int func, int reg) | ||||
| { | { | ||||
| uint32_t addr; | uint32_t addr; | ||||
| addr = ((((reg & 0xf00) >> 8) << 24) | (bus << 16) | (slot << 11) | | addr = ((((reg & 0xf00) >> 8) << 24) | (bus << 16) | (slot << 11) | | ||||
| (func << 8) | (reg & 0xfc) | (1 << 31)); | (func << 8) | (reg & 0xfc) | (1U << 31)); | ||||
| return (addr); | return (addr); | ||||
| } | } | ||||
| static int | static int | ||||
| mtk_pci_maxslots(device_t dev) | mtk_pci_maxslots(device_t dev) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 663 Lines • Show Last 20 Lines | |||||