Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/linux
File: edd.h
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
[0] Fix | Delete
/*
[1] Fix | Delete
* linux/include/linux/edd.h
[2] Fix | Delete
* Copyright (C) 2002, 2003, 2004 Dell Inc.
[3] Fix | Delete
* by Matt Domsch <Matt_Domsch@dell.com>
[4] Fix | Delete
*
[5] Fix | Delete
* structures and definitions for the int 13h, ax={41,48}h
[6] Fix | Delete
* BIOS Enhanced Disk Drive Services
[7] Fix | Delete
* This is based on the T13 group document D1572 Revision 0 (August 14 2002)
[8] Fix | Delete
* available at http://www.t13.org/docs2002/d1572r0.pdf. It is
[9] Fix | Delete
* very similar to D1484 Revision 3 http://www.t13.org/docs2002/d1484r3.pdf
[10] Fix | Delete
*
[11] Fix | Delete
* In a nutshell, arch/{i386,x86_64}/boot/setup.S populates a scratch
[12] Fix | Delete
* table in the boot_params that contains a list of BIOS-enumerated
[13] Fix | Delete
* boot devices.
[14] Fix | Delete
* In arch/{i386,x86_64}/kernel/setup.c, this information is
[15] Fix | Delete
* transferred into the edd structure, and in drivers/firmware/edd.c, that
[16] Fix | Delete
* information is used to identify BIOS boot disk. The code in setup.S
[17] Fix | Delete
* is very sensitive to the size of these structures.
[18] Fix | Delete
*
[19] Fix | Delete
* This program is free software; you can redistribute it and/or modify
[20] Fix | Delete
* it under the terms of the GNU General Public License v2.0 as published by
[21] Fix | Delete
* the Free Software Foundation
[22] Fix | Delete
*
[23] Fix | Delete
* This program is distributed in the hope that it will be useful,
[24] Fix | Delete
* but WITHOUT ANY WARRANTY; without even the implied warranty of
[25] Fix | Delete
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
[26] Fix | Delete
* GNU General Public License for more details.
[27] Fix | Delete
*
[28] Fix | Delete
*/
[29] Fix | Delete
#ifndef _LINUX_EDD_H
[30] Fix | Delete
#define _LINUX_EDD_H
[31] Fix | Delete
[32] Fix | Delete
#include <linux/types.h>
[33] Fix | Delete
[34] Fix | Delete
#define EDDNR 0x1e9 /* addr of number of edd_info structs at EDDBUF
[35] Fix | Delete
in boot_params - treat this as 1 byte */
[36] Fix | Delete
#define EDDBUF 0xd00 /* addr of edd_info structs in boot_params */
[37] Fix | Delete
#define EDDMAXNR 6 /* number of edd_info structs starting at EDDBUF */
[38] Fix | Delete
#define EDDEXTSIZE 8 /* change these if you muck with the structures */
[39] Fix | Delete
#define EDDPARMSIZE 74
[40] Fix | Delete
#define CHECKEXTENSIONSPRESENT 0x41
[41] Fix | Delete
#define GETDEVICEPARAMETERS 0x48
[42] Fix | Delete
#define LEGACYGETDEVICEPARAMETERS 0x08
[43] Fix | Delete
#define EDDMAGIC1 0x55AA
[44] Fix | Delete
#define EDDMAGIC2 0xAA55
[45] Fix | Delete
[46] Fix | Delete
[47] Fix | Delete
#define READ_SECTORS 0x02 /* int13 AH=0x02 is READ_SECTORS command */
[48] Fix | Delete
#define EDD_MBR_SIG_OFFSET 0x1B8 /* offset of signature in the MBR */
[49] Fix | Delete
#define EDD_MBR_SIG_BUF 0x290 /* addr in boot params */
[50] Fix | Delete
#define EDD_MBR_SIG_MAX 16 /* max number of signatures to store */
[51] Fix | Delete
#define EDD_MBR_SIG_NR_BUF 0x1ea /* addr of number of MBR signtaures at EDD_MBR_SIG_BUF
[52] Fix | Delete
in boot_params - treat this as 1 byte */
[53] Fix | Delete
[54] Fix | Delete
#ifndef __ASSEMBLY__
[55] Fix | Delete
[56] Fix | Delete
#define EDD_EXT_FIXED_DISK_ACCESS (1 << 0)
[57] Fix | Delete
#define EDD_EXT_DEVICE_LOCKING_AND_EJECTING (1 << 1)
[58] Fix | Delete
#define EDD_EXT_ENHANCED_DISK_DRIVE_SUPPORT (1 << 2)
[59] Fix | Delete
#define EDD_EXT_64BIT_EXTENSIONS (1 << 3)
[60] Fix | Delete
[61] Fix | Delete
#define EDD_INFO_DMA_BOUNDARY_ERROR_TRANSPARENT (1 << 0)
[62] Fix | Delete
#define EDD_INFO_GEOMETRY_VALID (1 << 1)
[63] Fix | Delete
#define EDD_INFO_REMOVABLE (1 << 2)
[64] Fix | Delete
#define EDD_INFO_WRITE_VERIFY (1 << 3)
[65] Fix | Delete
#define EDD_INFO_MEDIA_CHANGE_NOTIFICATION (1 << 4)
[66] Fix | Delete
#define EDD_INFO_LOCKABLE (1 << 5)
[67] Fix | Delete
#define EDD_INFO_NO_MEDIA_PRESENT (1 << 6)
[68] Fix | Delete
#define EDD_INFO_USE_INT13_FN50 (1 << 7)
[69] Fix | Delete
[70] Fix | Delete
struct edd_device_params {
[71] Fix | Delete
__u16 length;
[72] Fix | Delete
__u16 info_flags;
[73] Fix | Delete
__u32 num_default_cylinders;
[74] Fix | Delete
__u32 num_default_heads;
[75] Fix | Delete
__u32 sectors_per_track;
[76] Fix | Delete
__u64 number_of_sectors;
[77] Fix | Delete
__u16 bytes_per_sector;
[78] Fix | Delete
__u32 dpte_ptr; /* 0xFFFFFFFF for our purposes */
[79] Fix | Delete
__u16 key; /* = 0xBEDD */
[80] Fix | Delete
__u8 device_path_info_length; /* = 44 */
[81] Fix | Delete
__u8 reserved2;
[82] Fix | Delete
__u16 reserved3;
[83] Fix | Delete
__u8 host_bus_type[4];
[84] Fix | Delete
__u8 interface_type[8];
[85] Fix | Delete
union {
[86] Fix | Delete
struct {
[87] Fix | Delete
__u16 base_address;
[88] Fix | Delete
__u16 reserved1;
[89] Fix | Delete
__u32 reserved2;
[90] Fix | Delete
} __attribute__ ((packed)) isa;
[91] Fix | Delete
struct {
[92] Fix | Delete
__u8 bus;
[93] Fix | Delete
__u8 slot;
[94] Fix | Delete
__u8 function;
[95] Fix | Delete
__u8 channel;
[96] Fix | Delete
__u32 reserved;
[97] Fix | Delete
} __attribute__ ((packed)) pci;
[98] Fix | Delete
/* pcix is same as pci */
[99] Fix | Delete
struct {
[100] Fix | Delete
__u64 reserved;
[101] Fix | Delete
} __attribute__ ((packed)) ibnd;
[102] Fix | Delete
struct {
[103] Fix | Delete
__u64 reserved;
[104] Fix | Delete
} __attribute__ ((packed)) xprs;
[105] Fix | Delete
struct {
[106] Fix | Delete
__u64 reserved;
[107] Fix | Delete
} __attribute__ ((packed)) htpt;
[108] Fix | Delete
struct {
[109] Fix | Delete
__u64 reserved;
[110] Fix | Delete
} __attribute__ ((packed)) unknown;
[111] Fix | Delete
} interface_path;
[112] Fix | Delete
union {
[113] Fix | Delete
struct {
[114] Fix | Delete
__u8 device;
[115] Fix | Delete
__u8 reserved1;
[116] Fix | Delete
__u16 reserved2;
[117] Fix | Delete
__u32 reserved3;
[118] Fix | Delete
__u64 reserved4;
[119] Fix | Delete
} __attribute__ ((packed)) ata;
[120] Fix | Delete
struct {
[121] Fix | Delete
__u8 device;
[122] Fix | Delete
__u8 lun;
[123] Fix | Delete
__u8 reserved1;
[124] Fix | Delete
__u8 reserved2;
[125] Fix | Delete
__u32 reserved3;
[126] Fix | Delete
__u64 reserved4;
[127] Fix | Delete
} __attribute__ ((packed)) atapi;
[128] Fix | Delete
struct {
[129] Fix | Delete
__u16 id;
[130] Fix | Delete
__u64 lun;
[131] Fix | Delete
__u16 reserved1;
[132] Fix | Delete
__u32 reserved2;
[133] Fix | Delete
} __attribute__ ((packed)) scsi;
[134] Fix | Delete
struct {
[135] Fix | Delete
__u64 serial_number;
[136] Fix | Delete
__u64 reserved;
[137] Fix | Delete
} __attribute__ ((packed)) usb;
[138] Fix | Delete
struct {
[139] Fix | Delete
__u64 eui;
[140] Fix | Delete
__u64 reserved;
[141] Fix | Delete
} __attribute__ ((packed)) i1394;
[142] Fix | Delete
struct {
[143] Fix | Delete
__u64 wwid;
[144] Fix | Delete
__u64 lun;
[145] Fix | Delete
} __attribute__ ((packed)) fibre;
[146] Fix | Delete
struct {
[147] Fix | Delete
__u64 identity_tag;
[148] Fix | Delete
__u64 reserved;
[149] Fix | Delete
} __attribute__ ((packed)) i2o;
[150] Fix | Delete
struct {
[151] Fix | Delete
__u32 array_number;
[152] Fix | Delete
__u32 reserved1;
[153] Fix | Delete
__u64 reserved2;
[154] Fix | Delete
} __attribute__ ((packed)) raid;
[155] Fix | Delete
struct {
[156] Fix | Delete
__u8 device;
[157] Fix | Delete
__u8 reserved1;
[158] Fix | Delete
__u16 reserved2;
[159] Fix | Delete
__u32 reserved3;
[160] Fix | Delete
__u64 reserved4;
[161] Fix | Delete
} __attribute__ ((packed)) sata;
[162] Fix | Delete
struct {
[163] Fix | Delete
__u64 reserved1;
[164] Fix | Delete
__u64 reserved2;
[165] Fix | Delete
} __attribute__ ((packed)) unknown;
[166] Fix | Delete
} device_path;
[167] Fix | Delete
__u8 reserved4;
[168] Fix | Delete
__u8 checksum;
[169] Fix | Delete
} __attribute__ ((packed));
[170] Fix | Delete
[171] Fix | Delete
struct edd_info {
[172] Fix | Delete
__u8 device;
[173] Fix | Delete
__u8 version;
[174] Fix | Delete
__u16 interface_support;
[175] Fix | Delete
__u16 legacy_max_cylinder;
[176] Fix | Delete
__u8 legacy_max_head;
[177] Fix | Delete
__u8 legacy_sectors_per_track;
[178] Fix | Delete
struct edd_device_params params;
[179] Fix | Delete
} __attribute__ ((packed));
[180] Fix | Delete
[181] Fix | Delete
struct edd {
[182] Fix | Delete
unsigned int mbr_signature[EDD_MBR_SIG_MAX];
[183] Fix | Delete
struct edd_info edd_info[EDDMAXNR];
[184] Fix | Delete
unsigned char mbr_signature_nr;
[185] Fix | Delete
unsigned char edd_info_nr;
[186] Fix | Delete
};
[187] Fix | Delete
[188] Fix | Delete
#endif /*!__ASSEMBLY__ */
[189] Fix | Delete
[190] Fix | Delete
#endif /* _LINUX_EDD_H */
[191] Fix | Delete
[192] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function