sys: Remove $FreeBSD$: one-line sh patternRemove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
Fix some modules to export more used symbolsand remove non-present symbols that are now reported by kmod_syms.awk.Reviewed by: emasteSponsored by: The FreeBSD FoundationMFC after: 1 weekDiffer
Fix some modules to export more used symbolsand remove non-present symbols that are now reported by kmod_syms.awk.Reviewed by: emasteSponsored by: The FreeBSD FoundationMFC after: 1 weekDifferential revision: https://reviews.freebsd.org/D32878
show more ...
sys/modules: normalize .CURDIR-relative paths to SRCTOPThis simplifies make output/logicTested with: `cd sys/modules; make ALL_MODULES=` on amd64MFC after: 1 monthSponsored by: Dell EMC Isilon
- With the demise of !ATA_CAM, ATA_STATIC_ID is the only ata(4) related option left but actually consumed by ada(4), so move it to opt_ada.h and get rid of opt_ata.h.- Fix stand-alone build of a
- With the demise of !ATA_CAM, ATA_STATIC_ID is the only ata(4) related option left but actually consumed by ada(4), so move it to opt_ada.h and get rid of opt_ata.h.- Fix stand-alone build of atacore(4) by adding opt_cam.h.- Use __FBSDID.- Use DEVMETHOD_END.- Use NULL instead of 0 for pointers.
- Make ata_str2mode() static, it's not used outside of ata-all.c.- Move ata_timeout() to ata-all.c so we don't need to expose both this function and ata_cam_end_transaction() but only the former.
- Make ata_str2mode() static, it's not used outside of ata-all.c.- Move ata_timeout() to ata-all.c so we don't need to expose both this function and ata_cam_end_transaction() but only the former.- Move ata_cmd2str() from ata-queue.c to ata-all.c so we can get rid of the former.- Add some missing prototypes.MFC after: 3 days
pci_if.h is required to build atacore.
This is the roumored ATA modulerisation works, and it needs a little explanation.If you just config KERNEL as usual there should be no apparent changes, you'll get all chipset support code compiled
This is the roumored ATA modulerisation works, and it needs a little explanation.If you just config KERNEL as usual there should be no apparent changes, you'll get all chipset support code compiled in.However there is now a way to only compile in code for chipsets needed on a pr vendor basis. ATA now has the following "device" entries:atacore: ATA core functionality, always needed for any ATA setupatacard: CARDBUS supportatacbus: PC98 cbus supportataisa: ISA bus supportatapci: PCI bus support only generic chipset support.ataahci: AHCI support, also pulled in by some vendor modules.ataacard, ataacerlabs, ataadaptec, ataamd, ataati, atacenatek, atacypress, atacyrix, atahighpoint, ataintel, ataite, atajmicron, atamarvell, atamicron, atanational, atanetcell, atanvidia, atapromise, ataserverworks, atasiliconimage, atasis, atavia; Vendor support, ie atavia for VIA chipsetsatadisk: ATA disk driverataraid: ATA softraid driveratapicd: ATAPI cd/dvd driveratapifd: ATAPI floppy/flashdisk driveratapist: ATAPI tape driveratausb: ATA<>USB bridgeatapicam: ATA<>CAM bridgeThis makes it possible to config a kernel with just VIA chipset support by having the following ATA lines in the kernel config file:device atacoredevice atapcidevice ataviaAnd then you need the atadisk, atapicd etc lines in there just as usual.If you use ATA as modules loaded at boot there is few changes except the rename of the "ata" module to "atacore", things looks just as usual.However under atapci you now have a whole bunch of vendor specific drivers, that you can kldload individually depending on you needs. Drivers have the same names as used in the kernel config explained above.