26280d88d7
subset ("compatible", "device_type", "model" and "name") of the standard properties in drivers for devices on Open Firmware supported busses. The standard properties "reg", "interrupts" und "address" are not covered by this interface because they are only of interest in the respective bridge code. There's a remaining standard property "status" which is unclear how to support properly but which also isn't used in FreeBSD at present. This ofw_bus kobj-interface allows to replace the various (ebus_get_node(), ofw_pci_get_node(), etc.) and partially inconsistent (central_get_type() vs. sbus_get_device_type(), etc.) existing IVAR ones with a common one. This in turn allows to simplify and remove code-duplication in drivers for devices that can hang off of more than one OFW supported bus. - Convert the sparc64 Central, EBus, FHC, PCI and SBus bus drivers and the drivers for their children to use the ofw_bus kobj-interface. The IVAR- interfaces of the Central, EBus and FHC are entirely replaced by this. The PCI bus driver used its own kobj-interface and now also uses the ofw_bus one. The IVARs special to the SBus, e.g. for retrieving the burst size, remain. Beware: this causes an ABI-breakage for modules of drivers which used the IVAR-interfaces, i.e. esp(4), hme(4), isp(4) and uart(4), which need to be recompiled. The style-inconsistencies introduced in some of the bus drivers will be fixed by tmm@ in a generic clean-up of the respective drivers later (he requested to add the changes in the "new" style). - Convert the powerpc MacIO bus driver and the drivers for its children to use the ofw_bus kobj-interface. This invloves removing the IVARs related to the "reg" property which were unused and a leftover from the NetBSD origini of the code. There's no ABI-breakage caused by this because none of these driver are currently built as modules. There are other powerpc bus drivers which can be converted to the ofw_bus kobj-interface, e.g. the PCI bus driver, which should be done together with converting powerpc to use the OFW PCI code from sparc64. - Make the SBus and FHC front-end of zs(4) and the sparc64 eeprom(4) take advantage of the ofw_bus kobj-interface and simplify them a bit. Reviewed by: grehan, tmm Approved by: re (scottl) Discussed with: tmm Tested with: Sun AX1105, AXe, Ultra 2, Ultra 60; PPC cross-build on i386
115 lines
4.1 KiB
Plaintext
115 lines
4.1 KiB
Plaintext
# This file tells config what files go into building a kernel,
|
|
# files marked standard are always included.
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
# The long compile-with and dependency lines are required because of
|
|
# limitations in config: backslash-newline doesn't work in strings, and
|
|
# dependency lines other than the first are silently ignored.
|
|
#
|
|
#
|
|
|
|
font.h optional sc \
|
|
compile-with "uudecode < /usr/share/syscons/fonts/${SC_DFLT_FONT}-8x16.fnt && file2c 'u_char dflt_font_16[16*256] = {' '};' < ${SC_DFLT_FONT}-8x16 > font.h && uudecode < /usr/share/syscons/fonts/${SC_DFLT_FONT}-8x14.fnt && file2c 'u_char dflt_font_14[14*256] = {' '};' < ${SC_DFLT_FONT}-8x14 >> font.h && uudecode < /usr/share/syscons/fonts/${SC_DFLT_FONT}-8x8.fnt && file2c 'u_char dflt_font_8[8*256] = {' '};' < ${SC_DFLT_FONT}-8x8 >> font.h" \
|
|
no-obj no-implicit-rule before-depend \
|
|
clean "font.h ${SC_DFLT_FONT}-8x14 ${SC_DFLT_FONT}-8x16 ${SC_DFLT_FONT}-8x8"
|
|
|
|
dev/fb/fb.c optional sc
|
|
dev/kbd/kbd.c optional sc
|
|
dev/syscons/scgfbrndr.c optional sc
|
|
dev/syscons/schistory.c optional sc
|
|
dev/syscons/scmouse.c optional sc
|
|
dev/syscons/scterm.c optional sc
|
|
dev/syscons/scterm-dumb.c optional sc
|
|
dev/syscons/scterm-sc.c optional sc
|
|
dev/syscons/scvidctl.c optional sc
|
|
dev/syscons/scvtb.c optional sc
|
|
dev/syscons/syscons.c optional sc
|
|
dev/syscons/sysmouse.c optional sc
|
|
geom/geom_apple.c standard
|
|
kern/syscalls.c optional ktr
|
|
powerpc/powerpc/atomic.S standard
|
|
powerpc/powerpc/autoconf.c standard
|
|
powerpc/powerpc/bcopy.c standard
|
|
powerpc/powerpc/busdma_machdep.c standard
|
|
powerpc/powerpc/clock.c standard
|
|
powerpc/powerpc/copyinout.c standard
|
|
powerpc/powerpc/copystr.c standard
|
|
powerpc/powerpc/cpu.c standard
|
|
powerpc/powerpc/critical.c standard
|
|
powerpc/powerpc/elf_machdep.c standard
|
|
powerpc/powerpc/fpu.c standard
|
|
powerpc/powerpc/fuswintr.c standard
|
|
powerpc/powerpc/in_cksum.c optional inet
|
|
powerpc/powerpc/interrupt.c standard
|
|
powerpc/powerpc/intr_machdep.c standard
|
|
powerpc/powerpc/locore.S standard no-obj
|
|
powerpc/powerpc/machdep.c standard
|
|
powerpc/powerpc/nexus.c standard
|
|
powerpc/powerpc/ofwmagic.S standard
|
|
powerpc/powerpc/ofw_machdep.c standard
|
|
powerpc/powerpc/openpic.c standard
|
|
powerpc/powerpc/pic_if.m standard
|
|
powerpc/powerpc/pmap.c standard
|
|
powerpc/powerpc/sc_machdep.c optional sc
|
|
powerpc/powerpc/setjmp.S standard
|
|
powerpc/powerpc/sigcode.S standard
|
|
powerpc/powerpc/suswintr.c standard
|
|
powerpc/powerpc/syncicache.c standard
|
|
powerpc/powerpc/sys_machdep.c standard
|
|
powerpc/powerpc/swtch.S standard
|
|
powerpc/powerpc/trap.c standard
|
|
powerpc/powerpc/uio_machdep.c standard
|
|
powerpc/powerpc/uma_machdep.c standard
|
|
powerpc/powerpc/vm_machdep.c standard
|
|
|
|
powerpc/powerpc/db_disasm.c optional ddb
|
|
powerpc/powerpc/db_interface.c optional ddb
|
|
powerpc/powerpc/db_hwwatch.c optional ddb
|
|
powerpc/powerpc/db_trace.c optional ddb
|
|
|
|
crypto/blowfish/bf_enc.c optional ipsec ipsec_esp
|
|
crypto/des/des_enc.c optional ipsec ipsec_esp
|
|
|
|
dev/ofw/openfirm.c standard
|
|
dev/ofw/ofw_bus_if.m standard
|
|
dev/ofw/ofw_console.c standard
|
|
dev/ofw/ofw_disk.c optional ofwd
|
|
|
|
libkern/ashldi3.c standard
|
|
libkern/ashrdi3.c standard
|
|
libkern/bcmp.c standard
|
|
libkern/divdi3.c standard
|
|
libkern/ffs.c standard
|
|
libkern/ffsl.c standard
|
|
libkern/fls.c standard
|
|
libkern/flsl.c standard
|
|
libkern/lshrdi3.c standard
|
|
libkern/moddi3.c standard
|
|
libkern/qdivrem.c standard
|
|
libkern/ucmpdi2.c standard
|
|
libkern/udivdi3.c standard
|
|
libkern/umoddi3.c standard
|
|
|
|
powerpc/powerpc/mp_machdep.c optional smp
|
|
|
|
powerpc/ofw/ofw_pci.c optional pci
|
|
powerpc/ofw/ofw_pcib_pci.c optional pci
|
|
powerpc/ofw/ofw_syscons.c optional sc
|
|
|
|
powerpc/powermac/ata_kauai.c optional powermac ata
|
|
powerpc/powermac/ata_macio.c optional powermac ata
|
|
powerpc/powermac/grackle.c optional powermac pci
|
|
powerpc/powermac/hrowpic.c optional powermac pci
|
|
powerpc/powermac/macio.c optional powermac pci
|
|
powerpc/powermac/openpic_macio.c optional powermac pci
|
|
powerpc/powermac/pswitch.c optional powermac pswitch
|
|
powerpc/powermac/uninorth.c optional powermac pci
|
|
|
|
powerpc/psim/iobus.c optional psim
|
|
powerpc/psim/ata_iobus.c optional ata psim
|
|
powerpc/psim/openpic_iobus.c optional psim
|
|
powerpc/psim/sio_iobus.c optional sio psim
|
|
|
|
dev/zs/zs_macio.c optional powermac zs
|