18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * linux/include/linux/edd.h 48c2ecf20Sopenharmony_ci * Copyright (C) 2002, 2003, 2004 Dell Inc. 58c2ecf20Sopenharmony_ci * by Matt Domsch <Matt_Domsch@dell.com> 68c2ecf20Sopenharmony_ci * 78c2ecf20Sopenharmony_ci * structures and definitions for the int 13h, ax={41,48}h 88c2ecf20Sopenharmony_ci * BIOS Enhanced Disk Drive Services 98c2ecf20Sopenharmony_ci * This is based on the T13 group document D1572 Revision 0 (August 14 2002) 108c2ecf20Sopenharmony_ci * available at http://www.t13.org/docs2002/d1572r0.pdf. It is 118c2ecf20Sopenharmony_ci * very similar to D1484 Revision 3 http://www.t13.org/docs2002/d1484r3.pdf 128c2ecf20Sopenharmony_ci * 138c2ecf20Sopenharmony_ci * In a nutshell, arch/{i386,x86_64}/boot/setup.S populates a scratch 148c2ecf20Sopenharmony_ci * table in the boot_params that contains a list of BIOS-enumerated 158c2ecf20Sopenharmony_ci * boot devices. 168c2ecf20Sopenharmony_ci * In arch/{i386,x86_64}/kernel/setup.c, this information is 178c2ecf20Sopenharmony_ci * transferred into the edd structure, and in drivers/firmware/edd.c, that 188c2ecf20Sopenharmony_ci * information is used to identify BIOS boot disk. The code in setup.S 198c2ecf20Sopenharmony_ci * is very sensitive to the size of these structures. 208c2ecf20Sopenharmony_ci */ 218c2ecf20Sopenharmony_ci#ifndef _LINUX_EDD_H 228c2ecf20Sopenharmony_ci#define _LINUX_EDD_H 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci#include <uapi/linux/edd.h> 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ci#ifndef __ASSEMBLY__ 278c2ecf20Sopenharmony_ciextern struct edd edd; 288c2ecf20Sopenharmony_ci#endif /*!__ASSEMBLY__ */ 298c2ecf20Sopenharmony_ci#endif /* _LINUX_EDD_H */ 30