// SPDX-License-Identifier: GPL-2.0-only /* -*- linux-c -*- ------------------------------------------------------- * * * Copyright (C) 1991, 1992 Linus Torvalds * Copyright 2007 rPath, Inc. - All Rights Reserved * Copyright 2009 Intel Corporation; author H. Peter Anvin * * ----------------------------------------------------------------------- */ /* * Get EDD BIOS disk information */ #include "boot.h" #include <linux/edd.h> #include "string.h" #if defined(CONFIG_EDD) || defined(CONFIG_EDD_MODULE) /* * Read the MBR (first sector) from a specific device. */ static int read_mbr(u8 devno, void *buf) { … } static u32 read_mbr_sig(u8 devno, struct edd_info *ei, u32 *mbrsig) { … } static int get_edd_info(u8 devno, struct edd_info *ei) { … } void query_edd(void) { … } #endif