Home
last modified time | relevance | path

Searched refs:aplic (Results 1 – 8 of 8) sorted by relevance

/freebsd/sys/riscv/vmm/
H A Dvmm_aplic.c110 struct aplic { struct
120 aplic_handle_sourcecfg(struct aplic *aplic, int i, bool write, uint64_t *val) in aplic_handle_sourcecfg() argument
124 if (i <= 0 || i > aplic->nirqs) in aplic_handle_sourcecfg()
127 mtx_lock_spin(&aplic->mtx); in aplic_handle_sourcecfg()
128 irq = &aplic->irqs[i]; in aplic_handle_sourcecfg()
133 mtx_unlock_spin(&aplic->mtx); in aplic_handle_sourcecfg()
139 aplic_set_enabled(struct aplic *aplic, bool write, uint64_t *val, bool enabled) in aplic_set_enabled() argument
150 if (i <= 0 || i > aplic->nirqs) in aplic_set_enabled()
153 irq = &aplic->irqs[i]; in aplic_set_enabled()
155 mtx_lock_spin(&aplic->mtx); in aplic_set_enabled()
[all …]
H A Dvmm_dev_machdep.c106 struct vm_aplic_descr *aplic; in vmmdev_machdep_ioctl() local
108 aplic = (struct vm_aplic_descr *)data; in vmmdev_machdep_ioctl()
109 error = vm_attach_aplic(vm, aplic); in vmmdev_machdep_ioctl()
H A Driscv.h113 struct aplic *aplic; member
/freebsd/lib/libvmmapi/riscv/
H A Dvmmapi_machdep.c62 struct vm_aplic_descr aplic; in vm_attach_aplic() local
64 bzero(&aplic, sizeof(aplic)); in vm_attach_aplic()
65 aplic.mem_start = mem_start; in vm_attach_aplic()
66 aplic.mem_size = mem_size; in vm_attach_aplic()
68 return (ioctl(ctx->fd, VM_ATTACH_APLIC, &aplic)); in vm_attach_aplic()
/freebsd/sys/riscv/riscv/
H A Daplic.c184 fdt_get_hartid(device_t dev, phandle_t aplic) in fdt_get_hartid() argument
189 if (OF_searchencprop(aplic, "#interrupt-cells", &hartid, in fdt_get_hartid()
192 "Could not find #interrupt-cells for phandle %u\n", aplic); in fdt_get_hartid()
200 if (OF_searchencprop(OF_parent(aplic), "reg", (pcell_t *)&hartid, in fdt_get_hartid()
555 DEFINE_CLASS_0(aplic, aplic_driver, aplic_methods, sizeof(struct aplic_softc));
557 EARLY_DRIVER_MODULE(aplic, simplebus, aplic_driver, 0, 0,
/freebsd/sys/contrib/device-tree/src/riscv/spacemit/
H A Dk3.dtsi874 compatible = "spacemit,k3-aplic", "riscv,aplic";
916 compatible = "spacemit,k3-aplic", "riscv,aplic";
/freebsd/sys/conf/
H A Dfiles.riscv54 riscv/riscv/aplic.c standard
/freebsd/share/misc/
H A Dusb_vendors23886 ab12 aplic