win-pvdrivers

view xenscsi/xenscsi.h @ 382:ecfd4ddaaf3d

remove dead code
author Andy Grover <andy.grover@oracle.com>
date Wed Jul 09 12:35:41 2008 -0700 (2008-07-09)
parents a55d72ac422f
children 88cf95a1b34a
line source
1 #if !defined(_XENSCSI_H_)
2 #define _XENSCSI_H_
4 #include <ntifs.h>
5 #include <ntddk.h>
6 #include <wdm.h>
7 #include <initguid.h>
8 #include <ntdddisk.h>
9 #include <srb.h>
11 #define NTSTRSAFE_LIB
12 #include <ntstrsafe.h>
14 #define __DRIVER_NAME "XenSCSI"
16 #include <xen_windows.h>
17 #include <memory.h>
18 #include <grant_table.h>
19 #include <event_channel.h>
20 #include <hvm/params.h>
21 #include <hvm/hvm_op.h>
22 #include <xen_public.h>
23 #include <io/ring.h>
24 #include <io/vscsiif.h>
26 typedef struct vscsiif_request vscsiif_request_t;
27 typedef struct vscsiif_response vscsiif_response_t;
29 #define XENSCSI_POOL_TAG (ULONG) 'XSCS'
31 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
32 #define VSCSIIF_RING_SIZE __RING_SIZE((vscsiif_sring_t *)0, PAGE_SIZE)
34 typedef struct {
35 vscsiif_request_t req;
36 PSCSI_REQUEST_BLOCK Srb;
37 } vscsiif_shadow_t;
39 #define SHADOW_ENTRIES 32
40 #define MAX_GRANT_ENTRIES 512
42 struct
43 {
44 vscsiif_shadow_t shadows[SHADOW_ENTRIES];
45 USHORT shadow_free_list[SHADOW_ENTRIES];
46 USHORT shadow_free;
48 grant_ref_t grant_free_list[MAX_GRANT_ENTRIES];
49 USHORT grant_free;
50 USHORT grant_entries;
52 evtchn_port_t event_channel;
54 vscsiif_front_ring_t ring;
56 int host;
57 int channel;
58 int id;
59 int lun;
61 XENPCI_VECTORS vectors;
62 } typedef XENSCSI_DEVICE_DATA, *PXENSCSI_DEVICE_DATA;
64 enum dma_data_direction {
65 DMA_BIDIRECTIONAL = 0,
66 DMA_TO_DEVICE = 1,
67 DMA_FROM_DEVICE = 2,
68 DMA_NONE = 3,
69 };
71 VOID
72 XenScsi_FillInitCallbacks(PHW_INITIALIZATION_DATA HwInitializationData);
74 #endif