aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/diskpc98.h
Commit message (Collapse)AuthorAgeFilesLines
* Change <sys/diskpc98.h> to not redefine the same symbols that areMarcel Moolenaar2013-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@ Notes: svn path=/head/; revision=254015
* Fix clang warnings.Ben Laurie2011-06-181-0/+4
| | | | | | | Approved by: philip (mentor) Notes: svn path=/head/; revision=223262
* Move the PC98_[MS]ID_* defines from g_part_pc98.c to diskpc98.h.Yoshihiro Takahashi2009-03-111-3/+11
| | | | | | | Reviewed by: marcel Notes: svn path=/head/; revision=189695
* Change DOSPTYP_386BSD to 0xc494.Yoshihiro Takahashi2005-05-081-3/+3
| | | | Notes: svn path=/head/; revision=146008
* Add some convenience defines.Yoshihiro Takahashi2005-05-011-1/+5
| | | | Notes: svn path=/head/; revision=145762
* /* -> /*- for license, minor formatting changesWarner Losh2005-01-071-1/+1
| | | | Notes: svn path=/head/; revision=139825
* Remove advertising clause from University of California Regent's license,Warner Losh2004-04-071-4/+0
| | | | | | | | | per letter dated July 22, 1999. Approved by: core Notes: svn path=/head/; revision=127976
* Remove DIOCGPC98 ioctl.Yoshihiro Takahashi2003-05-011-1/+0
| | | | Notes: svn path=/head/; revision=114421
* - Move decoding pc98_partition function into geom_pc98_enc.c.Yoshihiro Takahashi2003-05-011-0/+3
| | | | | | | - Add encoding pc98_partition function. Notes: svn path=/head/; revision=114414
* Remove NEXTDOSPART.Yoshihiro Takahashi2003-01-211-1/+0
| | | | Notes: svn path=/head/; revision=109639
* Add a NEXTDOSPART definition here as well, for the benefit of biosdisk.c inPoul-Henning Kamp2003-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. Notes: svn path=/head/; revision=109557
* Rename the dos_partition structure for pc98 to pc98_partition.Yoshihiro Takahashi2003-01-041-2/+2
| | | | Notes: svn path=/head/; revision=108650
* MFMBR: Add ioctls for writing an IPL and a boot menu.Yoshihiro Takahashi2003-01-031-0/+5
| | | | Notes: svn path=/head/; revision=108591
* Check the size of the dos_partition structure.Yoshihiro Takahashi2002-10-071-0/+3
| | | | | | | Submitted by: kawanobe@st.rim.or.jp (Kawanobe Koh) Notes: svn path=/head/; revision=104616
* Divorce bsd disklabels, IBM PC MBR's and whatever the things arePoul-Henning Kamp2002-10-011-358/+3
| | | | | | | | | called on NEC PC98 machines. Sponsored by: DARPA & NAI Labs. Notes: svn path=/head/; revision=104314
* Make FreeBSD "struct disklabel" agnostic, step 312 of 723:Poul-Henning Kamp2002-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. Notes: svn path=/head/; revision=103683
* Make FreeBSD "struct disklabel" agnostic, step 311 of 723:Poul-Henning Kamp2002-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. Notes: svn path=/head/; revision=103675
* Retire now unused DIOCGDVIRGIN kludge.Poul-Henning Kamp2002-09-201-1/+0
| | | | | | | Sponsored by: DARPA & NAI Labs. Notes: svn path=/head/; revision=103670
* Deal with a new exteded MBR paritition typePoul-Henning Kamp2002-09-081-0/+1
| | | | | | | Submitted by: Michal Mertl <mime@traveller.cz> Notes: svn path=/head/; revision=103100
* forgot to actually commit the DK/FS TYPES split, do it now.Alfred Perlstein2002-08-161-1/+1
| | | | Notes: svn path=/head/; revision=101974
* Remove the compat bits for the mis-aligned struct disklabel on alpha,Poul-Henning Kamp2002-06-191-14/+0
| | | | | | | | | people got three times longer than I promised. Sponsored by: DARPA & NAI Labs. Notes: svn path=/head/; revision=98423
* More s/file system/filesystem/gTom Rhodes2002-05-161-4/+4
| | | | Notes: svn path=/head/; revision=96755
* ARGH! SBLOCK is not unused. Try to get this right.Poul-Henning Kamp2002-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. Notes: svn path=/head/; revision=96473
* De-K&R dkcksum() to fix some issues with c++.Alfred Perlstein2002-04-171-2/+1
| | | | | | | Submitted by: Miguel Mendez <flynn@energyhq.homeip.net> Notes: svn path=/head/; revision=94960
* Move generic disk ioctls from <sys/disklabel.h> to <sys/disk.h>.Poul-Henning Kamp2002-04-081-7/+3
| | | | | | | Sponsored by: DARPA & NAI Labs Notes: svn path=/head/; revision=94182
* In reverence of the 3rd X11 development rule:Poul-Henning Kamp2002-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. Notes: svn path=/head/; revision=94175
* Constify.Poul-Henning Kamp2002-04-071-2/+2
| | | | | | | Sponsored by: DARPA & NAI Labs. Notes: svn path=/head/; revision=94048
* Delete the bogus d_boot[01] fields from struct disklabel.Poul-Henning Kamp2002-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. Notes: svn path=/head/; revision=93810
* CTASSERT the size of struct dos_partition.Poul-Henning Kamp2002-04-041-0/+3
| | | | Notes: svn path=/head/; revision=93773
* Retire the bogus ioctl DIOCGPART in toto.Poul-Henning Kamp2002-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. Notes: svn path=/head/; revision=93657
* Really sweep the broom on this one.Poul-Henning Kamp2002-04-011-47/+13
| | | | | | | It's amazing how much cruft accumulate over the years... Notes: svn path=/head/; revision=93582
* Remove various controller/disk type hacks for SMD, ST506 and ancientPoul-Henning Kamp2002-04-011-20/+0
| | | | | | | SCSI stuff which have far outlived its sell by date. Notes: svn path=/head/; revision=93578
* Here follows the new kernel dumping infrastructure.Poul-Henning Kamp2002-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 Notes: svn path=/head/; revision=93496
* Add d_type and fstype names for JFS.Greg Lehey2002-03-281-0/+13
| | | | | | | Requested by: Hiten Pandya <hiten@uk.FreeBSD.org> Notes: svn path=/head/; revision=93318
* Revert last commit, it came too late to save alpha :-(Poul-Henning Kamp2002-03-231-4/+0
| | | | Notes: svn path=/head/; revision=93026
* Hide the ugly d_boot[01] from the kernel.Poul-Henning Kamp2002-03-231-0/+4
| | | | Notes: svn path=/head/; revision=93025
* Fixed some style bugs in the removal of __P(()). The main ones wereBruce Evans2002-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. Notes: svn path=/head/; revision=93008
* Remove __PAlfred Perlstein2002-03-191-15/+15
| | | | Notes: svn path=/head/; revision=92719
* Add five GEOM oriented ioctls to get basic information about a geom device.Poul-Henning Kamp2002-03-191-0/+6
| | | | Notes: svn path=/head/; revision=92698
* LABELOFFSET is 128 for sparc64.Jake Burkholder2002-03-131-0/+5
| | | | | | | | Submitted by: tmm Forgotten by: obrien Notes: svn path=/head/; revision=92196
* Hide the DIOCGPART ioctl from userland where it has no decent use.Poul-Henning Kamp2002-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. Notes: svn path=/head/; revision=91951
* Uninlined most of the bloated inline functions in <sys/disklabel.h>. SomeBruce Evans2002-01-171-18/+3
| | | | | | | of them need to become even larger to support devfs. Notes: svn path=/head/; revision=89468
* Garbage-collect vestiges of disksort(). We now have only one disksort()Bruce Evans2002-01-171-12/+10
| | | | | | | | | again, but its name has regressed to bioqdisksort(). Fixed some style bugs Notes: svn path=/head/; revision=89467
* Rename the top 7 bits if disk minors to spare bits, rather than type bits.Poul-Henning Kamp2001-11-041-2/+2
| | | | Notes: svn path=/head/; revision=86012
* Put the label at the same place as i386 for compatibility.Doug Rabson2001-10-061-0/+5
| | | | Notes: svn path=/head/; revision=84587
* Re-apply rev 1.178 -- style(9) the structure definitions.David E. O'Brien2001-09-131-1/+1
| | | | | | | I have to wonder how many other changes were lost in the KSE mildstone 2 merge. Notes: svn path=/head/; revision=83421
* Use ANSI prototype and function definition for dkcksum so that thisWarner Losh2001-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. Notes: svn path=/head/; revision=71009
* Make a #define for the highest legal disk unit (0x1ff)Poul-Henning Kamp2000-12-151-0/+3
| | | | Notes: svn path=/head/; revision=70054
* Make diskerr() always log with printf.Poul-Henning Kamp2000-11-261-1/+1
| | | | Notes: svn path=/head/; revision=69210
* Add a new ioctl for doing virgin disklabels.Jordan K. Hubbard2000-10-311-0/+1
| | | | | | | Submitted by: dillon Notes: svn path=/head/; revision=68043