summaryrefslogtreecommitdiff
path: root/sys/dev/vme
AgeCommit message (Collapse)Author
2023-01-23s/cyliner/cylinder/ and s/specturm/spectrum/ in messages.andvar
2022-07-12Remove unneeded bus_space_barrier() calls.thorpej
2021-10-24fix various typos in comments, mainly copypasta.andvar
2021-08-07Merge thorpej-cfargs2.thorpej
2021-04-24Merge thorpej-cfargs branch:thorpej
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?).
2020-08-24s/ressource/resource/. No functional change.msaitoh
2020-08-14Adapt to new proplib apimartin
2019-11-10in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAITchs
and remove code to handle failures that can no longer happen.
2019-04-25No functional change:msaitoh
- Use __arraycount(). - u_int_{8,16,32}_t -> uint_{8,16,32}_t - KNF. - Tabify. - Remove extra space.
2015-09-06More on PR 41200: headers that declare ioctls should include sys/ioccom.h.dholland
This covers (I think) all the MI headers outside of external/ (and dist/).
2015-04-26Use C99-style initializers for struct dkdriver.mlelstv
2014-12-31make more drivers use disk_ioctl, and add a dev parameter to it so thatchristos
we can merge the "easy" disklabel ioctls to it. Ultimately all this will go do dk_ioctl once all the drivers have been converted.
2014-08-18Sizeof struct ievme, not sizeof size_t.riastradh
Noted by maxv@, compile-tested for sparc.
2014-07-25Add d_discard to all struct cdevsw instances I could find.dholland
All have been set to "nodiscard"; some should get a real implementation.
2014-07-25Add d_discard to all struct bdevsw instances I could find.dholland
I've set them all to nodiscard. Some of them (wd, dk, vnd, ld, raidframe, maybe cgd) should be implemented for real.
2014-03-16Change (mostly mechanically) every cdevsw/bdevsw I can find to usedholland
designated initializers. I have not built every extant kernel so I have probably broken at least one build; however I've also found and fixed some wrong cdevsw/bdevsw entries so even if so I think we come out ahead.
2013-10-19- remove set but unused variable.mrg
- put variables only inside #ifdef inside that same #ifdef. use __USE() where appropriate.
2012-10-27split device_t/softc for all remaining drivers.chs
replace "struct device *" with "device_t". use device_xname(), device_unit(), etc.
2012-02-12Change old-style function defintions to C89 prototypes.matt
Approved by releng.
2012-01-27converting extent(9) from malloc(9) to kmem(9)para
preceding kmem-vmem-pool-uvm patch releng@ acknowledged
2011-06-03Split device_t/softc of i82586. No crash on TME emulating sun2.tsutsui
2011-02-01udpate license clauses on my code to match the new-style BSD licenses.chuck
remove no-longer-valid wustl email address for me. based on diff that rmind@ sent me. no functional change with this commit.
2010-12-11Use device_privatematt
2010-01-22Remove sparc specific code, use device properties instead.martin
2009-05-12struct device * -> device_t, no functional changes intended.cegger
2009-05-12struct cfdata * -> cfdata_t, no functional changes intended.cegger
2009-04-18Remove extra whitespace added by a stupid tool.tsutsui
XXX: more in src/sys/arch
2009-03-18bcopy -> memcpycegger
2009-03-18bzero -> memsetcegger
2009-03-18Ansify function definitions w/o arguments. Generated with sed.cegger
2009-03-14ANSIfy another 1261 function definitions.dsl
The only ones left in sys are beyond by sed script! (or in sys/dist or sys/external) Mostly they have function pointer parameters.
2009-03-14Change about 4500 of the K&R function definitions to ANSI ones.dsl
There are still about 1600 left, but they have ',' or /* ... */ in the actual variable definitions - which my awk script doesn't handle. There are also many that need () -> (void). (The script does handle misordered arguments.)
2009-01-13g/c BUFQ_FOO() macros and use bufq_foo() directly.yamt
2009-01-12cast to char to printf DISKPARTcegger
2008-12-17make this compilecegger
2008-12-16replace bitmask_snprintf(9) with snprintb(3)christos
2008-07-06Split device_t/softc with misc cosmetic changes.tsutsui
2008-06-11mechanical changes to use device_private() or device_lookup_private()drochner
to get softcs, makes the code compile under the stricter type checking introduced earlier today
2008-04-28Remove clause 3 and 4 from TNF licensesmartin
2008-04-05make this compilecegger
2008-04-05use aprint_*_dev and device_xnamecegger
2008-04-04Split devict_t/softc for ncr5380sbc SCSI, and misc cosmetic changes.tsutsui
2008-02-06It's KAUTH_REQ_DEVICE_RAWIO_PASSTHRU_*.elad
Noted by dogcow@, thanks!
2008-02-06- There is no XYCMD_WRP -- forgot to remove it along with the XYCMD_RDP :)elad
- Add missing '}' Noted by dogcow@, thanks!
2008-02-04Properly classify kauth PASSTHRU requests.elad
Done with much help from chuck@, thanks!
2008-01-02Merge vmlocking2 to head.ad
2007-10-19machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.had
2007-10-08Merge disk init changes from the vmlocking branch. These seperate init /ad
destroy of 'struct disk' from attach / detach.
2007-07-29It's not a good idea for device drivers to modify b_flags, as they don'tad
need to understand the locking around that field. Instead of setting B_ERROR, set b_error instead. b_error is 'owned' by whoever completes the I/O request.
2007-07-09Merge some of the less invasive changes from the vmlocking branch:ad
- kthread, callout, devsw API changes - select()/poll() improvements - miscellaneous MT safety improvements