[133] | 1 | /******************************************************************************
|
---|
| 2 | * ahciidc.h - definitions for the OS2AHCI IDC interface
|
---|
| 3 | *
|
---|
| 4 | * Copyright (c) 2011 thi.guten Software Development
|
---|
| 5 | * Copyright (c) 2011 Mensys B.V.
|
---|
[179] | 6 | * Copyright (c) 2013-2016 David Azarewicz
|
---|
[133] | 7 | *
|
---|
| 8 | * Authors: Christian Mueller, Markus Thielen
|
---|
| 9 | *
|
---|
| 10 | * Parts copied from/inspired by the Linux AHCI driver;
|
---|
| 11 | * those parts are (c) Linux AHCI/ATA maintainers
|
---|
| 12 | *
|
---|
| 13 | * This program is free software; you can redistribute it and/or modify
|
---|
| 14 | * it under the terms of the GNU General Public License as published by
|
---|
| 15 | * the Free Software Foundation; either version 2 of the License, or
|
---|
| 16 | * (at your option) any later version.
|
---|
| 17 | *
|
---|
| 18 | * This program is distributed in the hope that it will be useful,
|
---|
| 19 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 20 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 21 | * GNU General Public License for more details.
|
---|
| 22 | *
|
---|
| 23 | * You should have received a copy of the GNU General Public License
|
---|
| 24 | * along with this program; if not, write to the Free Software
|
---|
| 25 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
---|
| 26 | */
|
---|
| 27 |
|
---|
| 28 |
|
---|
| 29 | /* -------------------------- macros and constants ------------------------- */
|
---|
| 30 |
|
---|
| 31 | /* IDC category */
|
---|
| 32 | #define OS2AHCI_IDC_CATEGORY 0x88
|
---|
| 33 |
|
---|
| 34 | /* enter BIOS mode (e.g. to generate trap dumps)
|
---|
| 35 | * Request packet parameters: None
|
---|
| 36 | */
|
---|
| 37 | #define OS2AHCI_IDC_BIOSMODE 0x66
|
---|
| 38 |
|
---|
| 39 | /* test IOCTL; does nothing but BEEP
|
---|
| 40 | * Request packet parameters: None
|
---|
| 41 | */
|
---|
| 42 | #define OS2AHCI_IDC_BEEP 0x67
|
---|
| 43 |
|
---|
| 44 |
|
---|
| 45 | /* ------------------------ typedefs and structures ------------------------ */
|
---|
| 46 |
|
---|
| 47 | /* AHCI_IDC_ENTRY defines a function pointer to the OS2AHCI IDC entry point */
|
---|
[179] | 48 | typedef void (_cdecl *PFN_AHCI_IDC_ENTRY) (unsigned short real_ds, REQPACKET *ioctl);
|
---|
[133] | 49 |
|
---|
| 50 | #pragma pack(1)
|
---|
| 51 |
|
---|
| 52 | /*
|
---|
| 53 | * AHCI_ATTACH_AREA defines the device driver attach table as required
|
---|
| 54 | * to attach to os2ahci.add using DevHelp_AttachDD
|
---|
| 55 | */
|
---|
[179] | 56 | typedef struct
|
---|
| 57 | {
|
---|
[133] | 58 | PFN_AHCI_IDC_ENTRY real_entry_point; /* real mode entry point address */
|
---|
| 59 | unsigned short real_ds; /* real mode DS */
|
---|
| 60 |
|
---|
| 61 | PFN_AHCI_IDC_ENTRY prot_entry_point; /* protected mode entry point address */
|
---|
| 62 | unsigned short prot_ds; /* protected mode DS */
|
---|
[179] | 63 | } AHCI_ATTACH_AREA;
|
---|
[133] | 64 |
|
---|
| 65 | #pragma pack()
|
---|
| 66 |
|
---|
| 67 | /* -------------------------- function prototypes -------------------------- */
|
---|
| 68 |
|
---|
| 69 | /* ------------------------ global/static variables ------------------------ */
|
---|
| 70 |
|
---|
| 71 |
|
---|