biosdisk.c (332154) | biosdisk.c (334935) |
---|---|
1/*- 2 * Copyright (c) 1998 Michael Smith <msmith@freebsd.org> 3 * Copyright (c) 2012 Andrey V. Elsukov <ae@FreeBSD.org> 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1998 Michael Smith <msmith@freebsd.org> 3 * Copyright (c) 2012 Andrey V. Elsukov <ae@FreeBSD.org> 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> |
29__FBSDID("$FreeBSD: stable/11/stand/i386/libi386/biosdisk.c 332154 2018-04-06 21:37:25Z kevans $"); | 29__FBSDID("$FreeBSD: stable/11/stand/i386/libi386/biosdisk.c 334935 2018-06-10 22:26:15Z ian $"); |
30 31/* 32 * BIOS disk device handling. 33 * 34 * Ideas and algorithms from: 35 * 36 * - NetBSD libi386/biosdisk.c 37 * - FreeBSD biosboot/disk.c --- 35 unchanged lines hidden (view full) --- 73 uint64_t sectors; 74 75 STAILQ_HEAD(, pentry) entries; 76}; 77 78#include "geliboot.c" 79#endif /* LOADER_GELI_SUPPORT */ 80 | 30 31/* 32 * BIOS disk device handling. 33 * 34 * Ideas and algorithms from: 35 * 36 * - NetBSD libi386/biosdisk.c 37 * - FreeBSD biosboot/disk.c --- 35 unchanged lines hidden (view full) --- 73 uint64_t sectors; 74 75 STAILQ_HEAD(, pentry) entries; 76}; 77 78#include "geliboot.c" 79#endif /* LOADER_GELI_SUPPORT */ 80 |
81CTASSERT(sizeof(struct i386_devdesc) >= sizeof(struct disk_devdesc)); 82 | |
83#define BIOS_NUMDRIVES 0x475 84#define BIOSDISK_SECSIZE 512 85#define BUFSIZE (1 * BIOSDISK_SECSIZE) 86 87#define DT_ATAPI 0x10 /* disk type for ATAPI floppies */ 88#define WDMAJOR 0 /* major numbers for devices we frontend for */ 89#define WFDMAJOR 1 90#define FDMAJOR 2 --- 942 unchanged lines hidden --- | 81#define BIOS_NUMDRIVES 0x475 82#define BIOSDISK_SECSIZE 512 83#define BUFSIZE (1 * BIOSDISK_SECSIZE) 84 85#define DT_ATAPI 0x10 /* disk type for ATAPI floppies */ 86#define WDMAJOR 0 /* major numbers for devices we frontend for */ 87#define WFDMAJOR 1 88#define FDMAJOR 2 --- 942 unchanged lines hidden --- |