summaryrefslogtreecommitdiffstats
path: root/sys/sys/diskpc98.h
Commit message (Collapse)AuthorAgeFilesLines
* Change <sys/diskpc98.h> to not redefine the same symbols that aremarcel2013-08-071-12/+8
| | | | | | | | | | | | | | | | being defined in <sys/diskmbr.h>. Instead give the symbols here a "PC98_" prefix. This way, both <sys/diskmbr.h> and <sys/diskpc98.h> can be included in the same C source file. The renaming is trivial. The only gotcha is that DOSBBSECTOR is also redefined from 0 to 1. This because DOSBBSECTOR was always used in conjunction with an addition of 1. The PC98_BBSECTOR symbol is defined as 1 and the expression is simplified. Note: it is not believed that ports are seriously impacted; or at all for that matter. Approved by: nyan@
* Fix clang warnings.benl2011-06-181-0/+4
| | | | Approved by: philip (mentor)
* Move the PC98_[MS]ID_* defines from g_part_pc98.c to diskpc98.h.nyan2009-03-111-3/+11
| | | | Reviewed by: marcel
* Change DOSPTYP_386BSD to 0xc494.nyan2005-05-081-3/+3
|
* Add some convenience defines.nyan2005-05-011-1/+5
|
* /* -> /*- for license, minor formatting changesimp2005-01-071-1/+1
|
* Remove advertising clause from University of California Regent's license,imp2004-04-071-4/+0
| | | | | | per letter dated July 22, 1999. Approved by: core
* Remove DIOCGPC98 ioctl.nyan2003-05-011-1/+0
|
* - Move decoding pc98_partition function into geom_pc98_enc.c.nyan2003-05-011-0/+3
| | | | - Add encoding pc98_partition function.
* Remove NEXTDOSPART.nyan2003-01-211-1/+0
|
* Add a NEXTDOSPART definition here as well, for the benefit of biosdisk.c inphk2003-01-201-0/+1
| | | | | | the bootcode. I don't think there acturally are any extended partitions on pc98, and this define may merely help cover up the fact that the biosdisk.c was insufficiently scrubbed when copy&pasted from i386.
* Rename the dos_partition structure for pc98 to pc98_partition.nyan2003-01-041-2/+2
|
* MFMBR: Add ioctls for writing an IPL and a boot menu.nyan2003-01-031-0/+5
|
* Check the size of the dos_partition structure.nyan2002-10-071-0/+3
| | | | Submitted by: kawanobe@st.rim.or.jp (Kawanobe Koh)
* Divorce bsd disklabels, IBM PC MBR's and whatever the things arephk2002-10-011-358/+3
| | | | | | called on NEC PC98 machines. Sponsored by: DARPA & NAI Labs.
* Make FreeBSD "struct disklabel" agnostic, step 312 of 723:phk2002-09-201-1/+0
| | | | | | | | | | Rename bioqdisksort() to bioq_disksort(). Keep a #define around to avoid changing all diskdrivers right now. Move it from subr_disklabel.c to subr_disk.c. Move prototype from <sys/disklabel.h> to <sys/bio.h> Sponsored by: DARPA and NAI Labs.
* Make FreeBSD "struct disklabel" agnostic, step 311 of 723:phk2002-09-201-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | Rename diskerr() to disk_err() for naming consistency. Drop the by now entirely useless struct disklabel argument. Add a flag argument for new-line termination. Fix a couple of printf-format-casts to %j instead of %l. Correctly print the name of all bio commands. Move the function from subr_disklabel.c to subr_disk.c, and from <sys/disklabel.h> to <sys/disk.h>. Use the new disk_err() throughout, #include <sys/disk.h> as needed. Bump __FreeBSD_version for the sake of the aac disk drivers #ifdefs. Remove unused disklabel members of softc for aac, amr and mlx, which seem to originally have been intended for diskerr() use, but which only rotted and got Copy&Pasted at least two times to many. Sponsored by: DARPA & NAI Labs.
* Retire now unused DIOCGDVIRGIN kludge.phk2002-09-201-1/+0
| | | | Sponsored by: DARPA & NAI Labs.
* Deal with a new exteded MBR paritition typephk2002-09-081-0/+1
| | | | Submitted by: Michal Mertl <mime@traveller.cz>
* forgot to actually commit the DK/FS TYPES split, do it now.alfred2002-08-161-1/+1
|
* Remove the compat bits for the mis-aligned struct disklabel on alpha,phk2002-06-191-14/+0
| | | | | | people got three times longer than I promised. Sponsored by: DARPA & NAI Labs.
* More s/file system/filesystem/gtrhodes2002-05-161-4/+4
|
* ARGH! SBLOCK is not unused. Try to get this right.phk2002-05-121-0/+3
| | | | | | | | BBSIZE belongs in <sys/disklabel.h> (but shouldn't be a constant). Define SBLOCK again, using the right math. Sponsored by: DARPA & NAI Labs.
* De-K&R dkcksum() to fix some issues with c++.alfred2002-04-171-2/+1
| | | | Submitted by: Miguel Mendez <flynn@energyhq.homeip.net>
* Move generic disk ioctls from <sys/disklabel.h> to <sys/disk.h>.phk2002-04-081-7/+3
| | | | Sponsored by: DARPA & NAI Labs
* In reverence of the 3rd X11 development rule:phk2002-04-081-1/+0
| | | | | | | | | | 3.The only thing worse than generalizing from one example is generalizing from no examples at all. Remove the fwcylinders attribute before anybody gets the idea that we alone have squared the circle. Sponsored by: DARPA & NAI Labs.
* Constify.phk2002-04-071-2/+2
| | | | Sponsored by: DARPA & NAI Labs.
* Delete the bogus d_boot[01] fields from struct disklabel.phk2002-04-041-18/+19
| | | | | | | | | | | | | This shrinks the size 4 bytes on alpha, down to the same 276 bytes as all other platforms. Construct a hack to make old ioctls work on new kernels. Once world is recompiled only the new and correct sysctls will be used. This hack will become annoying around 1st of may to make people rebuild their worlds and it will be gone before 5.0.
* CTASSERT the size of struct dos_partition.phk2002-04-041-0/+3
|
* Retire the bogus ioctl DIOCGPART in toto.phk2002-04-021-15/+1
| | | | | | | Once again we can notice that badly thought out hacks ferment and infect far more code than initially expected. Sponsored by: DARPA and NAI Labs.
* Really sweep the broom on this one.phk2002-04-011-47/+13
| | | | It's amazing how much cruft accumulate over the years...
* Remove various controller/disk type hacks for SMD, ST506 and ancientphk2002-04-011-20/+0
| | | | SCSI stuff which have far outlived its sell by date.
* Here follows the new kernel dumping infrastructure.phk2002-03-311-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Caveats: The new savecore program is not complete in the sense that it emulates enough of the old savecores features to do the job, but implements none of the options yet. I would appreciate if a userland hacker could help me out getting savecore to do what we want it to do from a users point of view, compression, email-notification, space reservation etc etc. (send me email if you are interested). Currently, savecore will scan all devices marked as "swap" or "dump" in /etc/fstab _or_ any devices specified on the command-line. All architectures but i386 lack an implementation of dumpsys(), but looking at the i386 version it should be trivial for anybody familiar with the platform(s) to provide this function. Documentation is quite sparse at this time, more to come. Details: ATA and SCSI drivers should work as the dump formatting code has been removed. The IDA, TWE and AAC have not yet been converted. Dumpon now opens the device and uses ioctl(DIOCGKERNELDUMP) to set the device as dumpdev. To implement the "off" argument, /dev/null is used as the device. Savecore will fail if handed any options since they are not (yet) implemented. All devices marked "dump" or "swap" in /etc/fstab will be scanned and dumps found will be saved to diskfiles named from the MD5 hash of the header record. The header record is dumped in readable format in the .info file. The kernel is not saved. Only complete dumps will be saved. All maintainer rights for this code are disclaimed: feel free to improve and extend. Sponsored by: DARPA, NAI Labs
* Add d_type and fstype names for JFS.grog2002-03-281-0/+13
| | | | Requested by: Hiten Pandya <hiten@uk.FreeBSD.org>
* Revert last commit, it came too late to save alpha :-(phk2002-03-231-4/+0
|
* Hide the ugly d_boot[01] from the kernel.phk2002-03-231-0/+4
|
* Fixed some style bugs in the removal of __P(()). The main ones werebde2002-03-231-4/+3
| | | | | | not removing tabs before "__P((", and not outdenting continuation lines to preserve non-KNF lining up of code with parentheses. Switch to KNF formatting and/or rewrap the whole prototype in some cases.
* Remove __Palfred2002-03-191-15/+15
|
* Add five GEOM oriented ioctls to get basic information about a geom device.phk2002-03-191-0/+6
|
* LABELOFFSET is 128 for sparc64.jake2002-03-131-0/+5
| | | | | Submitted by: tmm Forgotten by: obrien
* Hide the DIOCGPART ioctl from userland where it has no decent use.phk2002-03-091-0/+4
| | | | | It's use in the kernel is also highly suspect due to the total absense of any kind of lifetime definition of the passed pointers.
* Uninlined most of the bloated inline functions in <sys/disklabel.h>. Somebde2002-01-171-18/+3
| | | | of them need to become even larger to support devfs.
* Garbage-collect vestiges of disksort(). We now have only one disksort()bde2002-01-171-12/+10
| | | | | | again, but its name has regressed to bioqdisksort(). Fixed some style bugs
* Rename the top 7 bits if disk minors to spare bits, rather than type bits.phk2001-11-041-2/+2
|
* Put the label at the same place as i386 for compatibility.dfr2001-10-061-0/+5
|
* Re-apply rev 1.178 -- style(9) the structure definitions.obrien2001-09-131-1/+1
| | | | I have to wonder how many other changes were lost in the KSE mildstone 2 merge.
* Use ANSI prototype and function definition for dkcksum so that thisimp2001-01-141-3/+2
| | | | | file can be included with C++ again. This appears to have been broken in 1.54 with the introduction of it as an inline function.
* Make a #define for the highest legal disk unit (0x1ff)phk2000-12-151-0/+3
|
* Make diskerr() always log with printf.phk2000-11-261-1/+1
|
* Add a new ioctl for doing virgin disklabels.jkh2000-10-311-0/+1
| | | | Submitted by: dillon
OpenPOWER on IntegriCloud