sys: general adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using misidentified many licenses so this was mostly a manual - errorpro
sys: general adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using misidentified many licenses so this was mostly a manual - errorprone - task.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier for automated tools to detect and summarize well knownopensource licenses. We are gradually adopting the specification, notingthat the tags are considered only advisory and do not, in any way,superceed or replace the license texts.No functional change intended.
show more ...
Migrate many bus_alloc_resource() calls to bus_alloc_resource_anywhere().Most calls to bus_alloc_resource() use "anywhere" as the range, with a givencount. Migrate these to use the new bus_alloc_
Migrate many bus_alloc_resource() calls to bus_alloc_resource_anywhere().Most calls to bus_alloc_resource() use "anywhere" as the range, with a givencount. Migrate these to use the new bus_alloc_resource_anywhere() API.Reviewed by: jhbDifferential Revision: https://reviews.freebsd.org/D5370
Create a generic PCCARD_PNP_INFO from the MODULE_PNP_INFO buildingblock. Use it in all the PNP drivers to export either the current PNPtable. For uart, create a custom table and export it usingMOD
Create a generic PCCARD_PNP_INFO from the MODULE_PNP_INFO buildingblock. Use it in all the PNP drivers to export either the current PNPtable. For uart, create a custom table and export it usingMODULE_PNP_INFO since it's the only one that matches on functionnumber.Differential Review: https://reviews.freebsd.org/D3461
In order to reduce use of M_EXT outside of the mbuf allocator andsocket-buffer implementations, introduce a return value for MCLGET()(and m_cljget() that underlies it) to allow the caller to avoid
In order to reduce use of M_EXT outside of the mbuf allocator andsocket-buffer implementations, introduce a return value for MCLGET()(and m_cljget() that underlies it) to allow the caller to avoid testingM_EXT itself. Update all callers to use the return value.With this change, very few network device drivers remain aware ofM_EXT; the primary exceptions lie in mbuf-chain pretty printers fordebugging, and in a few cases, custom mbuf and cluster allocationimplementations.NB: This is a difficult-to-test change as it touches many drivers forwhich I don't have physical devices. Instead we've gone for intensivereview, but further post-commit review would definitely be appreciatedto spot errors where changes could not easily be made mechanically,but were largely mechanical in nature.Differential Revision: https://reviews.freebsd.org/D1440Reviewed by: adrian, bz, gnnSponsored by: EMC / Isilon Storage Division
Remove ifq_drops from struct ifqueue. Now queue drops are accounted instruct ifnet if_oqdrops.Some netgraph modules used ifqueue w/o ifnet. Accounting of queue dropsis simply removed from them. T
Remove ifq_drops from struct ifqueue. Now queue drops are accounted instruct ifnet if_oqdrops.Some netgraph modules used ifqueue w/o ifnet. Accounting of queue dropsis simply removed from them. There were no API to read this statistic.Sponsored by: NetflixSponsored by: Nginx, Inc.
Mechanically substitute flags from historic mbuf allocator withmalloc(9) flags within sys.Exceptions:- sys/contrib not touched- sys/mbuf.h edited manually
o break newbus api: add a new argument of type driver_filter_t to bus_setup_intr()o add an int return code to all fast handlerso retire INTR_FAST/IH_FASTFor more info: http://docs.freebsd.org
o break newbus api: add a new argument of type driver_filter_t to bus_setup_intr()o add an int return code to all fast handlerso retire INTR_FAST/IH_FASTFor more info: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=465712+0+current/freebsd-currentReviewed by: manyApproved by: re@
Replace inb() and outb() with bus_space_read_1() and bus_space_write_1()Submitted by: mariusMFC after: 1 week
Do not manually allocate/free device's softc structure.Pointed by: jhbReviewed by: imp, jhb
- Use swi_remove() to teardown swi handlers rather than intr_event_remove_handler().- Remove tty: prefix from a couple of swi handler names.
Catch up with new interrupt handling code.
Fix comment
Finish last commit: actually remove compat methods from bt3c_pccard_methods
Remove broken OLDCARD compat shims."PC Card" is the correct spelling. "PC-Card" isn't, per the PCMCIAstandard.
Eliminate unused argument in PCMCIA_CARD macro.Provide a backwards compatible way to have the extra macro by definingPCCARD_API_LEVEL 5 before including pccarddevs for driver writers thatwant/nee
Eliminate unused argument in PCMCIA_CARD macro.Provide a backwards compatible way to have the extra macro by definingPCCARD_API_LEVEL 5 before including pccarddevs for driver writers thatwant/need to have the same driver on 5 and 6 with pccard attachments.Approved by: re (dwhite)
Correct typo that could cause FIFO overflow.PR: kern/78431MFC after: 3 days
/* -> /*- for license, minor formatting changes
Correct typo. Return ENXIO instead of EIO.
Missed these in the last commit.Change to C99 structure initialisation for the type method structure.
Move to generating pccarddevs.h on the fly, both for the kernel andthe modules.Also generate usbdevs.h automatically now, but a non-kernel file isstopping that at the moment.
Address few style issues pointed out by bdeReviewed by: bde, ru
Convert callers to the new bus_alloc_resource_any(9) API.Submitted by: Mark Santcroos <[email protected]>Reviewed by: imp, dfr, bde
Part one of undating the bluetooth code to the newest versionSubmitted by: Maksim Yevmenkin <[email protected]>Approved by: re@
Back out M_* changes, per decision of the TRB.Approved by: trb
Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
12