Really sweep the broom on this one.

It's amazing how much cruft accumulate over the years...
This commit is contained in:
phk 2002-04-01 20:18:02 +00:00
parent c01681e11a
commit c4cfde4a3b
3 changed files with 39 additions and 141 deletions

View File

@ -46,7 +46,6 @@
* Disk description table, see disktab(5)
*/
#define _PATH_DISKTAB "/etc/disktab"
#define DISKTAB "/etc/disktab" /* deprecated */
/*
* Each disk has a label which includes information about the hardware
@ -93,7 +92,6 @@
#define RAW_PART 2 /* partition containing whole disk */
#define SWAP_PART 1 /* partition normally containing swap */
#ifndef LOCORE
struct disklabel {
u_int32_t d_magic; /* the magic number */
u_int16_t d_type; /* drive type */
@ -201,18 +199,6 @@ dkcksum(lp)
return (sum);
}
#else /* LOCORE */
/*
* offsets for asm boot files.
*/
.set d_secsize,40
.set d_nsectors,44
.set d_ntracks,48
.set d_ncylinders,52
.set d_secpercyl,56
.set d_secperunit,60
.set d_end_,276 /* size of disk label */
#endif /* LOCORE */
/* d_type values: */
#define DTYPE_SMD 1 /* SMD, XSMD; VAX hp/up */
@ -229,10 +215,6 @@ dkcksum(lp)
#define DTYPE_DOC2K 13 /* Msys DiskOnChip */
#define DTYPE_JFS2 16 /* IBM JFS 2 */
#if defined(PC98) && !defined(PC98_ATCOMPAT)
#define DSTYPE_SEC256 0x80 /* physical sector size=256 */
#endif
#ifdef DKTYPENAMES
static char *dktypenames[] = {
"unknown",
@ -318,19 +300,6 @@ static char *fstypenames[] = {
#define D_RAMDISK 0x08 /* disk emulator */
#define D_CHAIN 0x10 /* can do back-back transfers */
#ifndef LOCORE
/*
* Structure used to perform a format or other raw operation, returning
* data and/or register values. Register identification and format
* are device- and driver-dependent.
*/
struct format_op {
char *df_buf;
int df_count; /* value-result */
daddr_t df_startblk;
int df_reg[8]; /* result */
};
#ifdef _KERNEL
/*
* Structure used internally to retrieve information about a partition
@ -346,11 +315,9 @@ struct partinfo {
#if defined(PC98) && !defined(PC98_ATCOMPAT)
#define DOSBBSECTOR 0 /* DOS boot block relative sector number */
#define DOSLABELSECTOR 1 /* 0: 256b/s, 1: 512b/s */
#define DOSPARTOFF 0
#define NDOSPART 16
#define DOSPTYP_386BSD 0x94 /* 386BSD partition type */
#define MBR_PTYPE_FreeBSD 0x94 /* FreeBSD partition type */
struct dos_partition {
unsigned char dp_mid;
@ -471,7 +438,6 @@ void alpha_fix_srm_checksum(struct buf *bp);
#endif /* _KERNEL */
#endif /* LOCORE */
#ifndef _KERNEL
__BEGIN_DECLS

View File

@ -46,7 +46,6 @@
* Disk description table, see disktab(5)
*/
#define _PATH_DISKTAB "/etc/disktab"
#define DISKTAB "/etc/disktab" /* deprecated */
/*
* Each disk has a label which includes information about the hardware
@ -93,7 +92,6 @@
#define RAW_PART 2 /* partition containing whole disk */
#define SWAP_PART 1 /* partition normally containing swap */
#ifndef LOCORE
struct disklabel {
u_int32_t d_magic; /* the magic number */
u_int16_t d_type; /* drive type */
@ -201,18 +199,6 @@ dkcksum(lp)
return (sum);
}
#else /* LOCORE */
/*
* offsets for asm boot files.
*/
.set d_secsize,40
.set d_nsectors,44
.set d_ntracks,48
.set d_ncylinders,52
.set d_secpercyl,56
.set d_secperunit,60
.set d_end_,276 /* size of disk label */
#endif /* LOCORE */
/* d_type values: */
#define DTYPE_SMD 1 /* SMD, XSMD; VAX hp/up */
@ -229,10 +215,6 @@ dkcksum(lp)
#define DTYPE_DOC2K 13 /* Msys DiskOnChip */
#define DTYPE_JFS2 16 /* IBM JFS 2 */
#if defined(PC98) && !defined(PC98_ATCOMPAT)
#define DSTYPE_SEC256 0x80 /* physical sector size=256 */
#endif
#ifdef DKTYPENAMES
static char *dktypenames[] = {
"unknown",
@ -318,19 +300,6 @@ static char *fstypenames[] = {
#define D_RAMDISK 0x08 /* disk emulator */
#define D_CHAIN 0x10 /* can do back-back transfers */
#ifndef LOCORE
/*
* Structure used to perform a format or other raw operation, returning
* data and/or register values. Register identification and format
* are device- and driver-dependent.
*/
struct format_op {
char *df_buf;
int df_count; /* value-result */
daddr_t df_startblk;
int df_reg[8]; /* result */
};
#ifdef _KERNEL
/*
* Structure used internally to retrieve information about a partition
@ -346,11 +315,9 @@ struct partinfo {
#if defined(PC98) && !defined(PC98_ATCOMPAT)
#define DOSBBSECTOR 0 /* DOS boot block relative sector number */
#define DOSLABELSECTOR 1 /* 0: 256b/s, 1: 512b/s */
#define DOSPARTOFF 0
#define NDOSPART 16
#define DOSPTYP_386BSD 0x94 /* 386BSD partition type */
#define MBR_PTYPE_FreeBSD 0x94 /* FreeBSD partition type */
struct dos_partition {
unsigned char dp_mid;
@ -471,7 +438,6 @@ void alpha_fix_srm_checksum(struct buf *bp);
#endif /* _KERNEL */
#endif /* LOCORE */
#ifndef _KERNEL
__BEGIN_DECLS

View File

@ -46,7 +46,6 @@
* Disk description table, see disktab(5)
*/
#define _PATH_DISKTAB "/etc/disktab"
#define DISKTAB "/etc/disktab" /* deprecated */
/*
* Each disk has a label which includes information about the hardware
@ -93,7 +92,6 @@
#define RAW_PART 2 /* partition containing whole disk */
#define SWAP_PART 1 /* partition normally containing swap */
#ifndef LOCORE
struct disklabel {
u_int32_t d_magic; /* the magic number */
u_int16_t d_type; /* drive type */
@ -201,18 +199,6 @@ dkcksum(lp)
return (sum);
}
#else /* LOCORE */
/*
* offsets for asm boot files.
*/
.set d_secsize,40
.set d_nsectors,44
.set d_ntracks,48
.set d_ncylinders,52
.set d_secpercyl,56
.set d_secperunit,60
.set d_end_,276 /* size of disk label */
#endif /* LOCORE */
/* d_type values: */
#define DTYPE_SMD 1 /* SMD, XSMD; VAX hp/up */
@ -229,10 +215,6 @@ dkcksum(lp)
#define DTYPE_DOC2K 13 /* Msys DiskOnChip */
#define DTYPE_JFS2 16 /* IBM JFS 2 */
#if defined(PC98) && !defined(PC98_ATCOMPAT)
#define DSTYPE_SEC256 0x80 /* physical sector size=256 */
#endif
#ifdef DKTYPENAMES
static char *dktypenames[] = {
"unknown",
@ -318,19 +300,6 @@ static char *fstypenames[] = {
#define D_RAMDISK 0x08 /* disk emulator */
#define D_CHAIN 0x10 /* can do back-back transfers */
#ifndef LOCORE
/*
* Structure used to perform a format or other raw operation, returning
* data and/or register values. Register identification and format
* are device- and driver-dependent.
*/
struct format_op {
char *df_buf;
int df_count; /* value-result */
daddr_t df_startblk;
int df_reg[8]; /* result */
};
#ifdef _KERNEL
/*
* Structure used internally to retrieve information about a partition
@ -346,11 +315,9 @@ struct partinfo {
#if defined(PC98) && !defined(PC98_ATCOMPAT)
#define DOSBBSECTOR 0 /* DOS boot block relative sector number */
#define DOSLABELSECTOR 1 /* 0: 256b/s, 1: 512b/s */
#define DOSPARTOFF 0
#define NDOSPART 16
#define DOSPTYP_386BSD 0x94 /* 386BSD partition type */
#define MBR_PTYPE_FreeBSD 0x94 /* FreeBSD partition type */
struct dos_partition {
unsigned char dp_mid;
@ -471,7 +438,6 @@ void alpha_fix_srm_checksum(struct buf *bp);
#endif /* _KERNEL */
#endif /* LOCORE */
#ifndef _KERNEL
__BEGIN_DECLS