Remove residual blank line at start of MakefileThis is a residual of the $FreeBSD$ removal.MFC After: 3 days (though I'll just run the command on the branches)Sponsored by: Netflix
sys: Remove $FreeBSD$: one-line sh patternRemove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
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.
show more ...
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.