1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-only */ 2*4882a593Smuzhiyun /* 3*4882a593Smuzhiyun * linux/include/linux/edd.h 4*4882a593Smuzhiyun * Copyright (C) 2002, 2003, 2004 Dell Inc. 5*4882a593Smuzhiyun * by Matt Domsch <Matt_Domsch@dell.com> 6*4882a593Smuzhiyun * 7*4882a593Smuzhiyun * structures and definitions for the int 13h, ax={41,48}h 8*4882a593Smuzhiyun * BIOS Enhanced Disk Drive Services 9*4882a593Smuzhiyun * This is based on the T13 group document D1572 Revision 0 (August 14 2002) 10*4882a593Smuzhiyun * available at http://www.t13.org/docs2002/d1572r0.pdf. It is 11*4882a593Smuzhiyun * very similar to D1484 Revision 3 http://www.t13.org/docs2002/d1484r3.pdf 12*4882a593Smuzhiyun * 13*4882a593Smuzhiyun * In a nutshell, arch/{i386,x86_64}/boot/setup.S populates a scratch 14*4882a593Smuzhiyun * table in the boot_params that contains a list of BIOS-enumerated 15*4882a593Smuzhiyun * boot devices. 16*4882a593Smuzhiyun * In arch/{i386,x86_64}/kernel/setup.c, this information is 17*4882a593Smuzhiyun * transferred into the edd structure, and in drivers/firmware/edd.c, that 18*4882a593Smuzhiyun * information is used to identify BIOS boot disk. The code in setup.S 19*4882a593Smuzhiyun * is very sensitive to the size of these structures. 20*4882a593Smuzhiyun */ 21*4882a593Smuzhiyun #ifndef _LINUX_EDD_H 22*4882a593Smuzhiyun #define _LINUX_EDD_H 23*4882a593Smuzhiyun 24*4882a593Smuzhiyun #include <uapi/linux/edd.h> 25*4882a593Smuzhiyun 26*4882a593Smuzhiyun #ifndef __ASSEMBLY__ 27*4882a593Smuzhiyun extern struct edd edd; 28*4882a593Smuzhiyun #endif /*!__ASSEMBLY__ */ 29*4882a593Smuzhiyun #endif /* _LINUX_EDD_H */ 30