History log of /src/sys/arch/arm/broadcom/bcm2835_mbox.c |
Revision | | Date | Author | Comments |
1.17 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.16 |
| 24-Apr-2021 |
thorpej | branches: 1.16.8; Merge thorpej-cfargs branch:
Simplify and make extensible the config_search() / config_found() / config_attach() interfaces: rather than having different variants for which arguments you want pass along, just have a single call that takes a variadic list of tag-value arguments.
Adjust all call sites: - Simplify wherever possible; don't pass along arguments that aren't actually needed. - Don't be explicit about what interface attribute is attaching if the device only has one. (More simplification.) - Add a config_probe() function to be used in indirect configuiration situations, making is visibly easier to see when indirect config is in play, and allowing for future change in semantics. (As of now, this is just a wrapper around config_match(), but that is an implementation detail.)
Remove unnecessary or redundant interface attributes where they're not needed.
There are currently 5 "cfargs" defined: - CFARG_SUBMATCH (submatch function for direct config) - CFARG_SEARCH (search function for indirect config) - CFARG_IATTR (interface attribte) - CFARG_LOCATORS (locators array) - CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)
...and a sentinel value CFARG_EOL.
Add some extra sanity checking to ensure that interface attributes aren't ambiguous.
Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark ports to associate those device handles with device_t instance. This will trickle trough to more places over time (need back-end for pre-OFW Sun OBP; any others?).
|
1.15 |
| 22-Feb-2020 |
jmcneill | branches: 1.15.8; RPi4 UEFI firmware 1.1 reports the wrong IRQ for the VC mailbox. Use polling mode for now until this is sorted out.
|
1.14 |
| 30-Dec-2019 |
jmcneill | branches: 1.14.2; Split bcm2835 mbox driver into separate fdt and acpi frontends.
|
1.13 |
| 19-Aug-2018 |
rin | Clean up leftover when converting intr_establish() to fdtbus_intr_establish(). The latter accept only flags 0 or FDT_INTR_MPSAFE. For both cases, it add IST_LEVEL flag for underlying intr_establish() function.
OK skrll
|
1.12 |
| 10-Dec-2017 |
skrll | branches: 1.12.2; 1.12.4; FDTise RapberryPI support. Thanks for jmcneill for a lot of help with this.
The kernel image that the RPI firmware boots is now netbsd.img in the kernel build directory.
XXX fdtbus_get_reg needs reworking
|
1.11 |
| 29-Jul-2015 |
skrll | When expanding an inline function make sure you get the argument order correct!
Now there's no functional change to expanding bcm2835_intr_establish
|
1.10 |
| 29-Jul-2015 |
skrll | Expand the bcm2835_intr_establish inline.
No functional change.
|
1.9 |
| 15-Oct-2014 |
skrll | branches: 1.9.2; Whitespace.
|
1.8 |
| 07-Oct-2014 |
skrll | Mailbox improvements from mlelstv@
Serialise access to the mailbox and use interrupts.
XXX if (cold) should go
|
1.7 |
| 02-Oct-2014 |
skrll | Ensure correctness of bus_dmamap_sync operations. Shouldn't affect RPI.
|
1.6 |
| 14-Apr-2013 |
skrll | Trailing whitespace
|
1.5 |
| 08-Jan-2013 |
skrll | branches: 1.5.2; Whitespace
|
1.4 |
| 08-Jan-2013 |
jmcneill | serialize bcmmbox_request
|
1.3 |
| 07-Jan-2013 |
jmcneill | allow for a single board specific device to attach to the mbox driver
|
1.2 |
| 22-Aug-2012 |
jakllsch | branches: 1.2.2; 1.2.4; As we'll soon get boot-time information via the mailbox method, seperate the actual access code into a seperate file that can be used by itself.
|
1.1 |
| 20-Aug-2012 |
skrll | First pass at a VC mailbox driver.
|
1.2.4.4 |
| 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.2.4.3 |
| 23-Jan-2013 |
yamt | sync with head
|
1.2.4.2 |
| 30-Oct-2012 |
yamt | sync with head
|
1.2.4.1 |
| 22-Aug-2012 |
yamt | file bcm2835_mbox.c was added on branch yamt-pagecache on 2012-10-30 17:18:59 +0000
|
1.2.2.3 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.2.2.2 |
| 23-Jun-2013 |
tls | resync from head
|
1.2.2.1 |
| 25-Feb-2013 |
tls | resync with head
|
1.5.2.2 |
| 13-Feb-2013 |
riz | Pull up following revision(s) (requested by skrll in ticket #813):
etc/MAKEDEV.tmpl 1.160 etc/etc.evbarm/MAKEDEV.conf 1.9 external/broadcom/rpi-firmware/dist/LICENCE.broadcom 1.1 external/broadcom/rpi-firmware/dist/bootcode.bin 1.1 external/broadcom/rpi-firmware/dist/bootcode.bin 1.2 external/broadcom/rpi-firmware/dist/fixup.dat 1.1 external/broadcom/rpi-firmware/dist/fixup.dat 1.2 external/broadcom/rpi-firmware/dist/fixup_cd.dat 1.1 external/broadcom/rpi-firmware/dist/fixup_cd.dat 1.2 external/broadcom/rpi-firmware/dist/start.elf 1.1 external/broadcom/rpi-firmware/dist/start.elf 1.2 external/broadcom/rpi-firmware/dist/start_cd.elf 1.1 external/broadcom/rpi-firmware/dist/start_cd.elf 1.2 sys/arch/arm/broadcom/bcm2835_bsc.c 1.1 via patch sys/arch/arm/broadcom/bcm2835_bscreg.h 1.1 via patch sys/arch/arm/broadcom/bcm2835_dotg.c 1.1 via patch sys/arch/arm/broadcom/bcm2835_emmc.c 1.7 via patch sys/arch/arm/broadcom/bcm2835_genfb.c 1.4 via patch sys/arch/arm/broadcom/bcm2835_gpio_subr.c 1.2 via patch sys/arch/arm/broadcom/bcm2835_gpio_subr.h 1.1 via patch sys/arch/arm/broadcom/bcm2835_gpioreg.h 1.1 via patch sys/arch/arm/broadcom/bcm2835_intr.c 1.3 via patch sys/arch/arm/broadcom/bcm2835_mbox.c 1.5 via patch sys/arch/arm/broadcom/bcm2835_mbox.h 1.4 via patch sys/arch/arm/broadcom/bcm2835_obio.c 1.17 via patch sys/arch/arm/broadcom/bcm2835_pm.c 1.2 via patch sys/arch/arm/broadcom/bcm2835_rng.c 1.3 via patch sys/arch/arm/broadcom/bcm2835_space.c 1.5 via patch sys/arch/arm/broadcom/bcm2835_spi.c 1.1 via patch sys/arch/arm/broadcom/bcm2835_spireg.h 1.1 via patch sys/arch/arm/broadcom/bcm2835_tmr.c 1.3 via patch sys/arch/arm/broadcom/bcm2835reg.h 1.10 via patch sys/arch/arm/broadcom/files.bcm2835 1.14 via patch sys/arch/evbarm/conf/RPI 1.23 via patch sys/arch/evbarm/conf/files.rpi 1.3 via patch sys/arch/evbarm/conf/mk.rpi 1.2 via patch sys/arch/evbarm/conf/std.rpi 1.4 via patch sys/arch/evbarm/rpi/rpi_machdep.c 1.34 via patch sys/arch/evbarm/rpi/rpi_start.S 1.7 via patch sys/arch/evbarm/rpi/rpi_vcmbox.c 1.2 via patch sys/arch/evbarm/rpi/vcio.h 1.1 via patch sys/arch/evbarm/rpi/vcprop.h 1.7 via patch sys/conf/files patch sys/dev/sdmmc/sdhc.c 1.43 sys/dev/sdmmc/sdhcvar.h 1.13 sys/dev/usb/dwc_otg.c 1.45 via patch sys/dev/usb/dwc_otgreg.h 1.5 via patch sys/dev/usb/dwc_otgvar.h 1.11 via patch sys/dev/usb/files.usb 1.126 via patch sys/dev/usb/if_smsc.c 1.7 via patch sys/dev/usb/if_smscreg.h 1.1 via patch sys/dev/usb/if_smscvar.h 1.1 via patch sys/dev/usb/usbdevices.config patch sys/dev/usb/usbdevs 1.633 via patch sys/dev/usb/usbdevs.h regen sys/dev/usb/usbdevs_data.h regen sys/dev/wscons/wsconsio.h 1.105,1.107 via patch sys/dev/wscons/wsdisplayvar.h 1.50 sys/dev/wscons/wsdisplay_util.c 1.2 sys/dev/videomode/edid.c 1.12 via patch
Greatly improved Raspberry Pi support. USB and onboard Ethernet should work. [skrll, ticket #813]
|
1.5.2.1 |
| 08-Jan-2013 |
riz | file bcm2835_mbox.c was added on branch netbsd-6 on 2013-02-13 01:36:14 +0000
|
1.9.2.1 |
| 22-Sep-2015 |
skrll | Sync with HEAD
|
1.12.4.2 |
| 08-Apr-2020 |
martin | Merge changes from current as of 20200406
|
1.12.4.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
1.12.2.1 |
| 06-Sep-2018 |
pgoyette | Sync with HEAD
Resolve a couple of conflicts (result of the uimin/uimax changes)
|
1.14.2.1 |
| 29-Feb-2020 |
ad | Sync with head.
|
1.15.8.1 |
| 23-Mar-2021 |
thorpej | Convert config_found_ia() call sites where the device only carries a single interface attribute to bare config_found() calls.
|
1.16.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|