Deleted Added
full compact
diskpc98.h (92719) diskpc98.h (93008)
1/*
2 * Copyright (c) 1987, 1988, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 17 unchanged lines hidden (view full) ---

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)disklabel.h 8.2 (Berkeley) 7/10/94
1/*
2 * Copyright (c) 1987, 1988, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 17 unchanged lines hidden (view full) ---

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)disklabel.h 8.2 (Berkeley) 7/10/94
34 * $FreeBSD: head/sys/sys/diskpc98.h 92719 2002-03-19 20:18:42Z alfred $
34 * $FreeBSD: head/sys/sys/diskpc98.h 93008 2002-03-23 08:46:52Z bde $
35 */
36
37#ifndef _SYS_DISKLABEL_H_
38#define _SYS_DISKLABEL_H_
39
40#ifndef _KERNEL
41#include <sys/types.h>
42#endif

--- 412 unchanged lines hidden (view full) ---

455#define dkpart(dev) (minor(dev) & 7)
456#define dkslice(dev) ((minor(dev) >> 16) & 0x1f)
457#define dksparebits(dev) ((minor(dev) >> 25) & 0x7f)
458
459struct bio;
460struct bio_queue_head;
461
462int bounds_check_with_label(struct bio *bp, struct disklabel *lp,
35 */
36
37#ifndef _SYS_DISKLABEL_H_
38#define _SYS_DISKLABEL_H_
39
40#ifndef _KERNEL
41#include <sys/types.h>
42#endif

--- 412 unchanged lines hidden (view full) ---

455#define dkpart(dev) (minor(dev) & 7)
456#define dkslice(dev) ((minor(dev) >> 16) & 0x1f)
457#define dksparebits(dev) ((minor(dev) >> 25) & 0x7f)
458
459struct bio;
460struct bio_queue_head;
461
462int bounds_check_with_label(struct bio *bp, struct disklabel *lp,
463 int wlabel);
464void diskerr(struct bio *bp, char *what, int blkdone,
465 struct disklabel *lp);
463 int wlabel);
464void diskerr(struct bio *bp, char *what, int blkdone, struct disklabel *lp);
466dev_t dkmodpart(dev_t dev, int part);
467dev_t dkmodslice(dev_t dev, int slice);
468u_int dkunit(dev_t dev);
469char *readdisklabel(dev_t dev, struct disklabel *lp);
470void bioqdisksort(struct bio_queue_head *ap, struct bio *bp);
471int setdisklabel(struct disklabel *olp, struct disklabel *nlp,
465dev_t dkmodpart(dev_t dev, int part);
466dev_t dkmodslice(dev_t dev, int slice);
467u_int dkunit(dev_t dev);
468char *readdisklabel(dev_t dev, struct disklabel *lp);
469void bioqdisksort(struct bio_queue_head *ap, struct bio *bp);
470int setdisklabel(struct disklabel *olp, struct disklabel *nlp,
472 u_long openmask);
471 u_long openmask);
473int writedisklabel(dev_t dev, struct disklabel *lp);
474#ifdef __alpha__
475struct buf;
476void alpha_fix_srm_checksum(struct buf *bp);
477#endif
478
479#endif /* _KERNEL */
480
481#endif /* LOCORE */
482
483#ifndef _KERNEL
484__BEGIN_DECLS
485struct disklabel *getdiskbyname(const char *);
486__END_DECLS
487#endif
488
489#endif /* !_SYS_DISKLABEL_H_ */
472int writedisklabel(dev_t dev, struct disklabel *lp);
473#ifdef __alpha__
474struct buf;
475void alpha_fix_srm_checksum(struct buf *bp);
476#endif
477
478#endif /* _KERNEL */
479
480#endif /* LOCORE */
481
482#ifndef _KERNEL
483__BEGIN_DECLS
484struct disklabel *getdiskbyname(const char *);
485__END_DECLS
486#endif
487
488#endif /* !_SYS_DISKLABEL_H_ */