Andriy Gapon
a45337f99f
i386 boot: consolidate MAXBDDEV definition
...
MFC after: 1 month
2012-05-09 08:05:50 +00:00
Yoshihiro Takahashi
ef7b7ac106
Fix debug messages of bd_io().
...
MFC after: 1 week
2009-12-17 13:14:11 +00:00
Yoshihiro Takahashi
e4cc6edfc1
Merge the missing changes from i386.
...
Teach the loader about the FAT partitions.
2009-03-20 05:33:58 +00:00
Yoshihiro Takahashi
1214222676
Use the common PC98_MID_* defines instead of a magic number.
2009-03-19 12:33:37 +00:00
Yoshihiro Takahashi
8a35feb1e2
MFi386: revision 1.55.
...
Tweak the verbose disk printing a bit.
2008-02-29 04:56:51 +00:00
Yoshihiro Takahashi
34b1e3506c
MFi386: part of 1.52
...
Split the pc98_partition specific routine in bd_opendisk()
into bd_open_pc98().
2007-10-25 14:31:52 +00:00
Yoshihiro Takahashi
91dfd26985
MFi386: part of revision 1.51
...
Rework the read/write support in the bios disk driver some to cut down
on duplicated code.
- All of the bounce buffer and retry logic duplicated in bd_read() and
bd_write() are merged into a single bd_io() routine that takes an
extra direction argument. bd_read() and bd_write() are now simple
wrappers around bd_io().
2007-10-25 12:57:46 +00:00
Yoshihiro Takahashi
1c44b03ee9
MFi386: revision 1.50
...
Reindent the read/write code of bd_realstrategy() so it is more readable.
2007-10-24 12:03:48 +00:00
John Baldwin
5c5b5d4607
Slightly cleanup the 'bootdev' concept on x86 by changing the various
...
macros to treat the 'slice' field as a real part of the bootdev instead
of as hack that spans two other fields (adaptor (sic) and controller)
that are not used in any modern FreeBSD boot code.
MFC after: 1 week
2007-10-24 04:03:25 +00:00
Marcel Moolenaar
932d8c46a2
Extend struct devdesc with a unit field, called d_unit. Promote the
...
device (kind) specific unit field to the common field. This change
allows a future version of libefi to work without requiring anything
more than what is defined in struct devdesc and as such makes it
possible to compile said version of libefi for different platforms
without requiring that those platforms have identical derivatives
of struct devdesc.
2006-11-02 01:23:18 +00:00
Yoshihiro Takahashi
2d908c8204
MFi386: revision 1.46.
2005-12-21 06:09:09 +00:00
Yoshihiro Takahashi
769f92857b
Remove ifdef PC98.
2005-05-08 14:17:28 +00:00
Yoshihiro Takahashi
d03f4aa4fe
Merged from libi386/biosdisk.c revisions 1.37 and 1.41.
2005-05-08 13:30:14 +00:00
Poul-Henning Kamp
1400886b92
Fix another beak.
...
Seen by: pjd
2004-06-17 11:44:05 +00:00
Poul-Henning Kamp
ad165b6f6d
Unspam sys/boot, the dev_t commit should not have touched these.
...
Spotted by: peter
2004-06-16 18:21:22 +00:00
Poul-Henning Kamp
0e69b1a1c7
My new keyboard can't spell.
2004-06-16 17:03:18 +00:00
Poul-Henning Kamp
89c9c53da0
Do the dreaded s/dev_t/struct cdev */
...
Bump __FreeBSD_version accordingly.
2004-06-16 09:47:26 +00:00
Poul-Henning Kamp
4ee9ad6b13
Premptively fix GCC3.4 issue: add break; after empty default: clauses.
...
PR: 65493
Submitted by: Pawel Worach <sajd@telia.com>
2004-06-16 08:12:06 +00:00
David E. O'Brien
7d4724590e
Use __FBSDID().
...
Also some minor style cleanups.
2003-09-08 09:11:32 +00:00
Poul-Henning Kamp
197e5e73ef
Libdisk does not need to include <sys/diskslice.h> any more.
...
Move the remaining bits of <sys/diskslice.h> to <i386/include/bootinfo.h>
Move i386/pc98 specific bits from <sys/reboot.h> to
<i386/include/bootinfo.h> as well.
Adjust includes in sys/boot accordingly.
2003-04-04 16:35:16 +00:00
Yoshihiro Takahashi
dc5cb962f7
Use NDOSPART instead of NEXTDOSPART.
2003-01-21 13:59:53 +00:00
Poul-Henning Kamp
63fc86da6f
Use NEXTDOSPART instead of MAX_SLICES.
2003-01-20 11:15:12 +00:00
Yoshihiro Takahashi
97a45538e4
Add SCSI MO device support.
...
Submitted by: Kawanobe Koh <kawanobe@st.rim.or.jp>
2003-01-06 13:43:15 +00:00
Yoshihiro Takahashi
404a379e4a
Rename the dos_partition structure for pc98 to pc98_partition.
2003-01-04 08:50:48 +00:00
Yoshihiro Takahashi
8b16930349
Added '#include <sys/diskpc98.h>'.
...
Submitted by: kawanobe@st.rim.or.jp (Kawanobe Koh)
2002-10-07 15:26:10 +00:00
Yoshihiro Takahashi
c47b0cd2c6
MFi386: revision 1.35 (Add support for writing to BIOS disks)
2001-12-12 13:47:04 +00:00
David E. O'Brien
6e551fb628
Update to C99, s/__FUNCTION__/__func__/,
...
also don't use ANSI string concatenation.
2001-12-10 08:09:49 +00:00
Yoshihiro Takahashi
64ee4b5b08
Merged from the following changes.
...
sys/boot/i386/btx/btx/Makefile 1.9
sys/boot/i386/btx/btx/btx.s 1.23
sys/boot/i386/libi386/biosdisk.c 1.32 and 1.33
sys/boot/i386/libi386/biosmem.c 1.5
sys/boot/i386/libi386/comconsole.c 1.8
sys/boot/i386/libi386/gatea20.c 1.3
sys/boot/i386/libi386/time.c 1.4
sys/boot/i386/libi386/vidconsole.c 1.13
sys/boot/i386/loader/Makefile 1.48
sys/boot/i386/loader/main.c 1.22
2000-11-05 12:35:41 +00:00
Yoshihiro Takahashi
11c2252a1f
Merged from sys/boot/i386/libi386/biosdisk.c revision 1.31.
2000-07-14 04:23:45 +00:00
Yoshihiro Takahashi
292feef381
Sync with sys/boot/i386/libi386/biosdisk.c revision 1.30.
2000-04-30 08:24:36 +00:00
KATO Takenori
c1cdadfffe
Synced with following files:
...
src/sys/boot/i386/Makefile.inc 1.1
src/sys/boot/i386/btx/btx/btx.s 1.15
src/sys/boot/i386/btx/btxldr/Makefile 1.8
src/sys/boot/i386/btx/btxldr/btxldr.s 1.9
src/sys/boot/i386/libi386/biosdisk.c 1.29
src/sys/boot/i386/loader/Makefile 1.42
src/sys/boot/i386/loader/main.c 1.18
(entry point address of loader was not changed.)
Reviewed by: nyan
2000-03-31 16:03:02 +00:00
Yoshihiro Takahashi
b0198bb46f
Sync with sys/boot/i386/libi386/biosdisk.c revision 1.27 and 1.28.
...
Submitted by: Kaho Toshikazu <kaho@elam.kais.kyoto-u.ac.jp>
2000-03-17 12:38:36 +00:00
Yoshihiro Takahashi
fdab06ad70
Fixed to get the BIOS geometry.
2000-01-03 15:28:05 +00:00
Yoshihiro Takahashi
2ea9f12efa
- Supported the bd_getbigeom function and use this function to get BIOS
...
geometry.
- Use i386/libi386/bootinfo.c instead of pc98/libpc98/bootinfo.c.
Submitted by: IMAI Takeshi <take-i@ceres.dti.ne.jp>
1999-12-19 14:05:46 +00:00
Poul-Henning Kamp
7d5961670c
Remove BAD144 support, it has already been disabled for some time.
1999-12-08 09:33:00 +00:00
Yoshihiro Takahashi
4374deee58
Cosmetic changes.
1999-11-16 00:42:18 +00:00
KATO Takenori
3e30c6e0ef
- Fixed DMA 64k boundary problem.
...
- Test the processor flag to detect disk I/O BIOS errors.
Submitted by: IMAI Takeshi <take-i@ceres.dti.ne.jp>
1999-09-23 03:57:16 +00:00
Peter Wemm
c3aac50f28
$Id$ -> $FreeBSD$
1999-08-28 01:08:13 +00:00
KATO Takenori
538c6e3378
- Don't assume that SCSI ID numbers of HDD units are contiguous. That
...
is, don't assume that SCSI ID corresponds to a unit number of da
device. Unit number of da device is provided by 2nd stage loader
and 3rd stage loader now use it.
- Fix drive letter to display.
Submitted by: IMAI Takeshi <take-i@ceres.dti.ne.jp>
1999-08-05 03:19:37 +00:00
KATO Takenori
13e87d2d60
Provides discontinuous unit number support to make external FDD
...
bootable on 1 FDD PC98 machines. (When an external FDD unit is
installed, unit numbers become discontinuous.)
Submitted by: IMAI Takeshi <take-i@ceres.dti.ne.jp>
1999-08-05 03:12:20 +00:00
KATO Takenori
94709d1d93
Make loader be able to load 1.2MB fd on machines w/ 1.44MB fdd.
...
Sumbmitted by: IMAI Takeshi <take-i@ceres.dti.ne.jp>
1999-03-04 16:38:12 +00:00
KATO Takenori
72578dfa5a
When SCSI IDs are not contiguous, the loader could not find correct
...
unit number for da device. This commit fixes this problem.
Submitted by: IMAI Takeshi <take-i@ceres.dti.ne.jp>
1999-03-04 10:48:14 +00:00
KATO Takenori
dccbc08d92
PC98 version of new boot loader. Because boot2 has not yet ported,
...
files in boot2 directory are copies from legacy biosboot.
Submitted by: IMAI Takeshi <take-i@ceres.dti.ne.jp>
1999-02-03 08:39:09 +00:00