History log of /src/sys/dev/pci/coram.c |
Revision | | Date | Author | Comments |
1.21 |
| 15-Sep-2025 |
thorpej | Encapsulate what's needed to attach an I2C bus into a iicbus_attach() inline.
|
1.20 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.19 |
| 24-Apr-2021 |
thorpej | branches: 1.19.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.18 |
| 23-Dec-2019 |
thorpej | branches: 1.18.10; No need to use I2C_F_POLL here.
|
1.17 |
| 22-Dec-2019 |
thorpej | Cleanup i2c bus acquire / release, centralizing all of the logic into iic_acquire_bus() / iic_release_bus(). "acquire" and "release" hooks no longer need to be provided by back-end controller drivers (only if they need special handling, e.g. powering on the i2c controller). This results in the removal of a bunch of rendundant code from each back-end controller driver.
Assert that we are not in hard interrupt context in iic_acquire_bus(), iic_exec(), and iic_release_bus().
|
1.16 |
| 09-Dec-2018 |
jdolecek | use pci_intr_establish_xname() everywhere
|
1.15 |
| 06-Jun-2018 |
maya | branches: 1.15.2; Remove duplicate ;
|
1.14 |
| 01-Jun-2017 |
chs | branches: 1.14.8; remove checks for failure after memory allocation calls that cannot fail:
kmem_alloc() with KM_SLEEP kmem_zalloc() with KM_SLEEP percpu_alloc() pserialize_create() psref_class_create()
all of these paths include an assertion that the allocation has not failed, so callers should not assert that again.
|
1.13 |
| 29-Mar-2014 |
christos | branches: 1.13.6; make pci_intr_string and eisa_intr_string take a buffer and a length instead of relying in local static storage.
|
1.12 |
| 16-Oct-2013 |
christos | remove unused variables.
|
1.11 |
| 29-Oct-2012 |
chs | branches: 1.11.2; remove an unnecessary cast. use the standard name for the third arg to attach. adjust some whitespace.
|
1.10 |
| 30-Jan-2012 |
drochner | branches: 1.10.6; Use pci_aprint_devinfo(9) instead of pci_devinfo+aprint_{normal,naive} where it looks straightforward, and pci_aprint_devinfo_fancy in a few others where drivers want to supply their own device names instead of the pcidevs generated one. More complicated cases, where names are composed at runtime, are left alone for now. It certainly makes sense to simplify the drivers here rather than inventing a catch-all API. This should serve as as example for new drivers, and also ensure consistent output in the AB_QUIET ("boot -q") case. Also, it avoids excessive stack usage where drivers attach child devices because the buffer for the device name is not kept on the local stack anymore.
|
1.9 |
| 29-Aug-2011 |
jmcneill | branches: 1.9.2; 1.9.6; have pci register itself as a module, and make PCI driver modules depend on it
|
1.8 |
| 09-Aug-2011 |
jmcneill | modify the dtv device api so hardware drivers can be loaded independently of the dtv module
|
1.7 |
| 06-Aug-2011 |
jmcneill | build fix: forgot to add sc_board to softc
|
1.6 |
| 06-Aug-2011 |
jmcneill | print devname not subdevname on attach, and report the board name to dtv subsystem instead of generic CX23885
|
1.5 |
| 06-Aug-2011 |
jmcneill | don't attach iic@coram unless CORAM_ATTACH_I2C is defined
|
1.4 |
| 05-Aug-2011 |
jmcneill | hide debug messages under CORAM_DEBUG
|
1.3 |
| 05-Aug-2011 |
jmcneill | return status from demod instead of 0, and don't ignore errors when setting demod parameters
|
1.2 |
| 04-Aug-2011 |
jmcneill | modularize coram and add detach + childdet methods
|
1.1 |
| 04-Aug-2011 |
jakllsch | Add coram(4).
A driver for CX23885-based TV cards, such as the Hauppauge WinTV HVR-1250 "Coram" board.
Currently only supports ATSC 8VSB reception.
|
1.9.6.1 |
| 18-Feb-2012 |
mrg | merge to -current.
|
1.9.2.3 |
| 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.9.2.2 |
| 30-Oct-2012 |
yamt | sync with head
|
1.9.2.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.10.6.3 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.10.6.2 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.10.6.1 |
| 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.11.2.1 |
| 18-May-2014 |
rmind | sync with head
|
1.13.6.1 |
| 28-Aug-2017 |
skrll | Sync with HEAD
|
1.14.8.2 |
| 26-Dec-2018 |
pgoyette | Sync with HEAD, resolve a few conflicts
|
1.14.8.1 |
| 25-Jun-2018 |
pgoyette | Sync with HEAD
|
1.15.2.2 |
| 08-Apr-2020 |
martin | Merge changes from current as of 20200406
|
1.15.2.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
1.18.10.1 |
| 02-Apr-2021 |
thorpej | config_found_ia() -> config_found() w/ CFARG_IATTR.
|
1.19.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|