]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/Include/IndustryStandard/LsiScsi.h
OvmfPkg/LsiScsiDxe: Open PciIo protocol and initialize the device
[mirror_edk2.git] / OvmfPkg / Include / IndustryStandard / LsiScsi.h
1 /** @file
2
3 Macros and type definitions for LSI 53C895A SCSI devices.
4
5 Copyright (C) 2020, SUSE LLC.
6
7 SPDX-License-Identifier: BSD-2-Clause-Patent
8
9 **/
10
11 #ifndef _LSI_SCSI_H_
12 #define _LSI_SCSI_H_
13
14 //
15 // Device ID
16 //
17 #define LSI_LOGIC_PCI_VENDOR_ID 0x1000
18 #define LSI_53C895A_PCI_DEVICE_ID 0x0012
19
20 //
21 // LSI 53C895A Registers
22 //
23 #define LSI_REG_DSTAT 0x0C
24 #define LSI_REG_ISTAT0 0x14
25 #define LSI_REG_DSP 0x2C
26 #define LSI_REG_SIST0 0x42
27 #define LSI_REG_SIST1 0x43
28
29 //
30 // The status bits for Interrupt Status Zero (ISTAT0)
31 //
32 #define LSI_ISTAT0_DIP BIT0
33 #define LSI_ISTAT0_SIP BIT1
34 #define LSI_ISTAT0_INTF BIT2
35 #define LSI_ISTAT0_CON BIT3
36 #define LSI_ISTAT0_SEM BIT4
37 #define LSI_ISTAT0_SIGP BIT5
38 #define LSI_ISTAT0_SRST BIT6
39 #define LSI_ISTAT0_ABRT BIT7
40
41 #endif // _LSI_SCSI_H_