Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Aug 2004 21:31:21 +0200
From:      Marius Strobl <marius@alchemy.franken.de>
To:        freebsd-sparc64@freebsd.org
Subject:   HEADS UP! recompile esp(4), hme(4), isp(4) and uart(4) modules [marius@freebsd.org: cvs commit: src/sys/conf files.powerpc files.sparc64 kmod.mk src/sys/dev/esp esp_sbus.c src/sys/dev/hme if_hme_sbus.c src/sys/dev/isp isp_sbus.c src/sys/dev/ofw ofw_bus.h ofw_bus_if.m...]
Message-ID:  <20040812213121.D31182@newtrinity.zeist.de>

next in thread | raw e-mail | index | archive | help

I commited a larger change which requires the recompilation of the esp(4),
hme(4), isp(4) and uart(4) modules together with the kernel next time you
update 5-current.

----- Forwarded message from Marius Strobl <marius@freebsd.org> -----

<...>

  Log:
  - Introduce an ofw_bus kobj-interface for retrieving the OFW node and a
    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
  
  Revision  Changes    Path
  1.40      +1 -0      src/sys/conf/files.powerpc
  1.57      +2 -1      src/sys/conf/files.sparc64
  1.164     +1 -0      src/sys/conf/kmod.mk
  1.6       +5 -4      src/sys/dev/esp/esp_sbus.c
  1.13      +4 -3      src/sys/dev/hme/if_hme_sbus.c
  1.15      +6 -5      src/sys/dev/isp/isp_sbus.c
  1.1       +73 -0     src/sys/dev/ofw/ofw_bus.h (new)
  1.1       +110 -0    src/sys/dev/ofw/ofw_bus_if.m (new)
  1.4       +3 -5      src/sys/dev/pcf/envctrl.c
  1.3       +7 -8      src/sys/dev/pcf/pcf_ebus.c
  1.3       +4 -4      src/sys/dev/puc/puc_ebus.c
  1.4       +4 -4      src/sys/dev/puc/puc_sbus.c
  1.35      +12 -9     src/sys/dev/sab/sab.c
  1.5       +5 -5      src/sys/dev/uart/uart_bus_ebus.c
  1.6       +5 -9      src/sys/dev/zs/zs_macio.c
  1.8       +12 -61    src/sys/dev/zs/zs_sbus.c
  1.3       +1 -1      src/sys/modules/esp/Makefile
  1.2       +2 -2      src/sys/modules/hme/Makefile
  1.2       +1 -1      src/sys/modules/isp/Makefile
  1.10      +3 -2      src/sys/modules/uart/Makefile
  1.11      +2 -3      src/sys/powerpc/powermac/ata_macio.c
  1.8       +2 -2      src/sys/powerpc/powermac/hrowpic.c
  1.16      +69 -53    src/sys/powerpc/powermac/macio.c
  1.5       +4 -27     src/sys/powerpc/powermac/maciovar.h
  1.8       +2 -2      src/sys/powerpc/powermac/openpic_macio.c
  1.4       +64 -46    src/sys/sparc64/central/central.c
  1.2       +0 -47     src/sys/sparc64/central/centralvar.h (dead)
  1.19      +71 -49    src/sys/sparc64/ebus/ebus.c
  1.3       +0 -56     src/sys/sparc64/ebus/ebusvar.h (dead)
  1.9       +52 -41    src/sys/sparc64/fhc/fhc.c
  1.4       +10 -5     src/sys/sparc64/fhc/fhc_central.c
  1.4       +8 -2      src/sys/sparc64/fhc/fhc_nexus.c
  1.3       +5 -17     src/sys/sparc64/fhc/fhcvar.h
  1.3       +2 -1      src/sys/sparc64/include/eeprom.h
  1.13      +2 -1      src/sys/sparc64/isa/isa.c
  1.10      +4 -1      src/sys/sparc64/pci/apb.c
  1.8       +0 -7      src/sys/sparc64/pci/ofw_pci.h
  1.5       +0 -17     src/sys/sparc64/pci/ofw_pci_if.m
  1.4       +5 -2      src/sys/sparc64/pci/ofw_pcib.c
  1.4       +4 -3      src/sys/sparc64/pci/ofw_pcib_subr.c
  1.3       +1 -1      src/sys/sparc64/pci/ofw_pcib_subr.h
  1.3       +67 -9     src/sys/sparc64/pci/ofw_pcibus.c
  1.52      +7 -4      src/sys/sparc64/pci/psycho.c
  1.31      +67 -25    src/sys/sparc64/sbus/sbus.c
  1.4       +0 -8      src/sys/sparc64/sbus/sbusvar.h
  1.5       +16 -9     src/sys/sparc64/sparc64/eeprom.c
  1.7       +4 -19     src/sys/sparc64/sparc64/eeprom_ebus.c
  1.7       +0 -136    src/sys/sparc64/sparc64/eeprom_fhc.c (dead)
  1.7       +6 -20     src/sys/sparc64/sparc64/eeprom_sbus.c
  1.10      +3 -1      src/sys/sparc64/sparc64/ofw_machdep.c
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"

----- End forwarded message -----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040812213121.D31182>