Commit Graph

118492 Commits

Author SHA1 Message Date
bouyer
7fc9b29ccd Regen: Add new per-chip pciide drivers. 2003-10-08 11:53:10 +00:00
bouyer
11c3265271 Add new per-chip pciide drivers. 2003-10-08 11:52:50 +00:00
bouyer
9d02ccdbdf Split pciide in per-chip family driver, as proposed in
http://mail-index.netbsd.org/tech-kern/2003/09/25/0007.html
We now have:
acardide*       at pci? dev ? function ?        # Acard IDE controllers
aceride*        at pci? dev ? function ?        # Acer Lab IDE controllers
cmdide*         at pci? dev ? function ?        # CMD tech IDE controllers
cypide*         at pci? dev ? function ?        # Cypress IDE controllers
hptide*         at pci? dev ? function ?        # Triones/HighPoint IDE controllers
optiide*        at pci? dev ? function ?        # Opti IDE controllers
piixide*        at pci? dev ? function ?        # Intel IDE controllers
pdcide*         at pci? dev ? function ?        # Promise IDE controllers
siside*         at pci? dev ? function ?        # SiS IDE controllers
slide*          at pci? dev ? function ?        # Symphony Labs IDE controllers
viaide*         at pci? dev ? function ?        # VIA/AMD/Nvidia IDE controllers
pciide*         at pci? dev ? function ? flags 0x0000   # GENERIC pciide driver

serverworks driver not commited yet; there are still copyright issues about
it.
2003-10-08 11:51:59 +00:00
bouyer
2336c69d5a Add ata(4) atabus(4) 2003-10-08 11:32:08 +00:00
bouyer
7cc555fc4d Add a ata(4) man page, with a symlink to atabus(4), and xref where
appropriate.
2003-10-08 11:20:09 +00:00
bouyer
a8b5ae01dc Add atabus. 2003-10-08 11:14:36 +00:00
bouyer
ab176e7665 Add adabus. 2003-10-08 11:14:12 +00:00
bouyer
28c8b4f872 Add atabus. 2003-10-08 11:13:02 +00:00
bouyer
ce0aaad119 Adapt for wdcattach() prototype change, and deal with atabus in
device_register().
2003-10-08 11:12:36 +00:00
bouyer
e1e231a488 Add atabus. 2003-10-08 11:11:33 +00:00
bouyer
b758d4deb3 Adapt for wdcattach() prototype change. 2003-10-08 11:11:06 +00:00
bouyer
88809a6534 Add atabus. 2003-10-08 11:10:54 +00:00
bouyer
8f905677f4 Adapt for wdcattach() prototype change. 2003-10-08 11:10:18 +00:00
bouyer
f003412676 Add atabus 2003-10-08 11:10:04 +00:00
bouyer
367dd334c1 Add atabus. 2003-10-08 11:09:26 +00:00
bouyer
9686725046 Add atabus 2003-10-08 11:09:09 +00:00
bouyer
e9255b5ae1 Add atabus. 2003-10-08 11:08:07 +00:00
bouyer
bcc3968da5 add atabus. 2003-10-08 11:07:50 +00:00
bouyer
a690443244 Add atabus 2003-10-08 11:07:04 +00:00
bouyer
2e73ec1205 Add atabus. 2003-10-08 11:06:24 +00:00
bouyer
d29ea7aa72 Adapt for wdcattach() prototype change. 2003-10-08 11:06:05 +00:00
bouyer
7a7a287e2c Regen: add atabus. 2003-10-08 11:05:52 +00:00
bouyer
f14a2e4df2 Add atabus. 2003-10-08 11:04:56 +00:00
bouyer
8efe26b8cd Adapt for wdcattach() prototype change. 2003-10-08 11:04:32 +00:00
bouyer
102fb2528b Regen: add atabus 2003-10-08 11:03:55 +00:00
bouyer
0a88b9caa1 Add atabus 2003-10-08 11:02:45 +00:00
bouyer
54433c63d2 Add atabus. 2003-10-08 11:02:18 +00:00
bouyer
20b2eaeddb Add atabus 2003-10-08 11:01:38 +00:00
bouyer
923e187eb7 Adapt for wdcattach() prototype change. 2003-10-08 11:01:16 +00:00
bouyer
adb3f1c3c5 Add atabus 2003-10-08 11:00:38 +00:00
bouyer
b7d355a7b2 add atabus 2003-10-08 10:59:55 +00:00
bouyer
99d6009c2a Make the ATA mid-layer appears as atabus, as proposed in
http://mail-index.netbsd.org/tech-kern/2003/09/25/0006.html
This adds a device (atabus) between IDE controllers and wd or atapibus, to
have each ATA channel show up in the device tree. Later there will be atabus
devices in /dev, so that we can do IOCTL on them.
Each atabus has its own kernel thread, to handle operations that needs polling,
e.g. reset and others.

Device probing on each bus it defered to the atabus thread creation.
This allows to do the reset and basic device probes in parallel, which reduce
boot time on systems with several pciide controllers.
2003-10-08 10:58:12 +00:00
mycroft
32856df936 We really don't need to do 2 resets in wdc_channel_attach() -- the one done
by wdcprobe() is enough.
2003-10-08 08:47:58 +00:00
wiz
618a3a6591 Remove space that broke page. From Nicolas Joly in PR 23082. 2003-10-08 07:43:55 +00:00
lukem
8ff09e8ecf Remove the unused "hardcode the blocks of /boot" versions /boot and
i386-MD installboot.
They haven't been enabled for a while, keeping them here is just
confusing, and they're still going to be in the CVS repo attic...
2003-10-08 04:43:28 +00:00
lukem
1c33b4e6a4 Overhaul MBR handling (part 1):
<sys/bootblock.h>:
    *	Added definitions for the Master Boot Record (MBR) used by
	a variety of systems (primarily i386), including the format
	of the BIOS Parameter Block (BPB).
	This information was cribbed from a variety of sources
	including <sys/disklabel_mbr.h> which this is a superset of.

	As part of this, some data structure elements and #defines
	were renamed to be more "namespace friendly" and consistent
	with other bootblocks and MBR documentation.
	Update all uses of the old names to the new names.

<sys/disklabel_mbr.h>:
    *	Deprecated in favor of <sys/bootblock.h> (the latter is more
	"host tool" friendly).

amd64 & i386:
    *	Renamed /usr/mdec/bootxx_dosfs to /usr/mdec/bootxx_msdos, to
	be consistent with the naming convention of the msdosfs tools.

    *	Removed /usr/mdec/bootxx_ufs, as it's equivalent to bootxx_ffsv1
	and it's confusing to have two functionally equivalent bootblocks,
	especially given that "ufs" has multiple meanings (it could be
	a synonym for "ffs", or the group of ffs/lfs/ext2fs file systems).

    *	Rework pbr.S (the first sector of bootxx_*):
	    +	Ensure that BPB (bytes 11..89) and the partition table
		(bytes 446..509) do not contain code.
	    +	Add support for booting from FAT partitions if BOOT_FROM_FAT
		is defined.  (Only set for bootxx_msdos).
	    +	Remove "dummy" partition 3; if people want to installboot(8)
		these to the start of the disk they can use fdisk(8) to
		create a real MBR partition table...
	    +	Compile with TERSE_ERROR so it fits because of the above.
		Whilst this is less user friendly, I feel it's important
		to have a valid partition table and BPB in the MBR/PBR.

    *	Renamed /usr/mdec/biosboot to /usr/mdec/boot, to be consistent
	with other platforms.

    *	Enable SUPPORT_DOSFS in /usr/mdec/boot (stage2), so that
    	we can boot off FAT partitions.

    *	Crank version of /usr/mdec/boot to 3.1, and fix some of the other
	entries in the version file.

installboot(8) (i386):
    *	Read the existing MBR of the filesystem and retain the BIOS
    	Parameter Block (BPB) in bytes 11..89 and the MBR partition
	table in bytes 446..509.  (Previously installboot(8) would
	trash those two sections of the MBR.)

mbrlabel(8):
    *	Use sys/lib/libkern/xlat_mbr_fstype.c instead of homegrown code
	to map the MBR partition type to the NetBSD disklabel type.


Test built "make release" for i386, and new bootblocks verified to work
(even off FAT!).
2003-10-08 04:25:43 +00:00
lukem
1ea85577bc sort entries, and add a couple 2003-10-08 04:13:13 +00:00
lukem
2d6acee111 add bpbReserved fields 2003-10-08 04:11:43 +00:00
lukem
04a16dcc66 add some more detail to an error message 2003-10-08 03:56:21 +00:00
enami
8c172fb0e0 Adapt to recent ksiginfo change. 2003-10-08 03:10:41 +00:00
simonb
db3d16f0e2 Remove some unneeded include files. 2003-10-08 01:43:28 +00:00
simonb
9c38f23cdb Add -D_STANDALONE to CPPFLAGS. 2003-10-08 01:42:37 +00:00
simonb
970b12080e Define LIB{CRT0,C,CRTBEGIN,CRTEND} as nothing, we don't need to link
against them.
2003-10-08 01:40:22 +00:00
simonb
fe200beac4 Use -ffreestanding.
Define LIB{CRT0,C,CRTBEGIN,CRTEND} as nothing, we don't need to link
against them.
2003-10-08 01:38:49 +00:00
simonb
f25f172d64 Use -ffreestanding.
Define LIBC as nothing, we don't need to link against it.
2003-10-08 01:37:35 +00:00
simonb
8ca32cb009 Use -ffreestanding. 2003-10-08 01:36:19 +00:00
simonb
27fbee2ad2 Don't use multi-line strings (keeps gcc331 happy). 2003-10-08 01:35:49 +00:00
simonb
07704f0a5a Use consistent type qualifiers for CPU1_alive (keeps gcc331 happy). 2003-10-08 01:33:54 +00:00
simonb
605b20c064 Use <lib/libkern/libkern.h> for str*() prototypes instead of the userland
header <string.h>.
2003-10-08 01:30:40 +00:00
simonb
b00f4b8b66 Remove tokens at the end of #undef. 2003-10-08 01:27:22 +00:00