Print this page
4888 Undocument dma_req(9s)
4884 EOF scsi_hba_attach
4886 EOF ddi_dmae_getlim
4887 EOF ddi_iomin
4634 undocument scsi_hba_attach() and ddi_dma_lim(9s)
4630 clean stale references to ddi_iopb_alloc and ddi_iopb_free
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/common/sys/ddi_obsolete.h
+++ new/usr/src/uts/common/sys/ddi_obsolete.h
1 1 /*
2 2 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
3 3 * Use is subject to license terms.
4 4 */
5 5 /*
6 - * Copyright 2012 Garrett D'Amore <garrett@damore.org>. All rights reserved.
6 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
7 7 */
8 8
9 9 #ifndef _SYS_DDI_OBSOLETE_H
10 10 #define _SYS_DDI_OBSOLETE_H
11 11
12 12 /*
13 13 * Obsoleted DDI Interfaces
14 14 */
15 15
16 16 #include <sys/types.h>
17 17 #include <sys/dditypes.h>
18 18 #include <sys/sunldi.h>
19 19
20 20
21 21 #ifdef __cplusplus
22 22 extern "C" {
23 23 #endif
24 24
25 25
26 -/*
27 - * The following are intentionally outside of _DDI_STRICT, they are obsolete
28 - * and shouldn't be used by drivers, but are still used in the consolidation.
29 - * e.g. DDI implementation.
30 - */
31 -int ddi_iomin(dev_info_t *dip, int initial, int streaming);
32 -
33 -
34 26 #ifndef _DDI_STRICT
35 27
36 28 extern long strtol(const char *, char **, int);
37 29 extern unsigned long strtoul(const char *, char **, int);
38 30
39 -/* we'd really like to remove this; unbundled nexus drivers might have it */
40 -int ddi_dma_map(dev_info_t *dip, dev_info_t *rdip,
41 - struct ddi_dma_req *dmareqp, ddi_dma_handle_t *handlep);
42 -
43 31 uint8_t ddi_mem_get8(ddi_acc_handle_t handle, uint8_t *host_addr);
44 32 uint16_t ddi_mem_get16(ddi_acc_handle_t handle, uint16_t *host_addr);
45 33 uint32_t ddi_mem_get32(ddi_acc_handle_t handle, uint32_t *host_addr);
46 34 uint64_t ddi_mem_get64(ddi_acc_handle_t handle, uint64_t *host_addr);
47 35 void ddi_mem_put8(ddi_acc_handle_t handle, uint8_t *dev_addr, uint8_t value);
48 36 void ddi_mem_put16(ddi_acc_handle_t handle, uint16_t *dev_addr, uint16_t value);
49 37 void ddi_mem_put32(ddi_acc_handle_t handle, uint32_t *dev_addr, uint32_t value);
50 38 void ddi_mem_put64(ddi_acc_handle_t handle, uint64_t *dev_addr, uint64_t value);
51 39
52 40 void ddi_mem_rep_get8(ddi_acc_handle_t handle, uint8_t *host_addr,
53 41 uint8_t *dev_addr, size_t repcount, uint_t flags);
54 42 void ddi_mem_rep_get16(ddi_acc_handle_t handle, uint16_t *host_addr,
55 43 uint16_t *dev_addr, size_t repcount, uint_t flags);
56 44 void ddi_mem_rep_get32(ddi_acc_handle_t handle, uint32_t *host_addr,
57 45 uint32_t *dev_addr, size_t repcount, uint_t flags);
58 46 void ddi_mem_rep_get64(ddi_acc_handle_t handle, uint64_t *host_addr,
59 47 uint64_t *dev_addr, size_t repcount, uint_t flags);
60 48 void ddi_mem_rep_put8(ddi_acc_handle_t handle, uint8_t *host_addr,
61 49 uint8_t *dev_addr, size_t repcount, uint_t flags);
62 50 void ddi_mem_rep_put16(ddi_acc_handle_t handle, uint16_t *host_addr,
63 51 uint16_t *dev_addr, size_t repcount, uint_t flags);
64 52 void ddi_mem_rep_put32(ddi_acc_handle_t handle, uint32_t *host_addr,
65 53 uint32_t *dev_addr, size_t repcount, uint_t flags);
66 54 void ddi_mem_rep_put64(ddi_acc_handle_t handle, uint64_t *host_addr,
67 55 uint64_t *dev_addr, size_t repcount, uint_t flags);
68 56
69 57 uint8_t ddi_io_get8(ddi_acc_handle_t handle, uint8_t *dev_addr);
70 58 uint16_t ddi_io_get16(ddi_acc_handle_t handle, uint16_t *dev_addr);
71 59 uint32_t ddi_io_get32(ddi_acc_handle_t handle, uint32_t *dev_addr);
72 60 void ddi_io_put8(ddi_acc_handle_t handle, uint8_t *dev_addr, uint8_t value);
73 61 void ddi_io_put16(ddi_acc_handle_t handle, uint16_t *dev_addr, uint16_t value);
74 62 void ddi_io_put32(ddi_acc_handle_t handle, uint32_t *dev_addr, uint32_t value);
75 63
76 64 void ddi_io_rep_get8(ddi_acc_handle_t handle,
77 65 uint8_t *host_addr, uint8_t *dev_addr, size_t repcount);
78 66 void ddi_io_rep_get16(ddi_acc_handle_t handle,
79 67 uint16_t *host_addr, uint16_t *dev_addr, size_t repcount);
80 68 void ddi_io_rep_get32(ddi_acc_handle_t handle,
81 69 uint32_t *host_addr, uint32_t *dev_addr, size_t repcount);
82 70 void ddi_io_rep_put8(ddi_acc_handle_t handle,
83 71 uint8_t *host_addr, uint8_t *dev_addr, size_t repcount);
84 72 void ddi_io_rep_put16(ddi_acc_handle_t handle,
85 73 uint16_t *host_addr, uint16_t *dev_addr, size_t repcount);
86 74 void ddi_io_rep_put32(ddi_acc_handle_t handle,
87 75 uint32_t *host_addr, uint32_t *dev_addr, size_t repcount);
88 76
89 77 /* only support older interfaces on 32-bit systems */
90 78 #ifdef _ILP32
91 79 #define ddi_mem_getb ddi_mem_get8
92 80 #define ddi_mem_getw ddi_mem_get16
93 81 #define ddi_mem_getl ddi_mem_get32
94 82 #define ddi_mem_getll ddi_mem_get64
95 83 #define ddi_mem_rep_getb ddi_mem_rep_get8
96 84 #define ddi_mem_rep_getw ddi_mem_rep_get16
97 85 #define ddi_mem_rep_getl ddi_mem_rep_get32
98 86 #define ddi_mem_rep_getll ddi_mem_rep_get64
99 87 #define ddi_mem_putb ddi_mem_put8
100 88 #define ddi_mem_putw ddi_mem_put16
101 89 #define ddi_mem_putl ddi_mem_put32
102 90 #define ddi_mem_putll ddi_mem_put64
103 91 #define ddi_mem_rep_putb ddi_mem_rep_put8
104 92 #define ddi_mem_rep_putw ddi_mem_rep_put16
105 93 #define ddi_mem_rep_putl ddi_mem_rep_put32
106 94 #define ddi_mem_rep_putll ddi_mem_rep_put64
107 95 #define ddi_io_getb ddi_io_get8
108 96 #define ddi_io_getw ddi_io_get16
109 97 #define ddi_io_getl ddi_io_get32
110 98 #define ddi_io_putb ddi_io_put8
111 99 #define ddi_io_putw ddi_io_put16
112 100 #define ddi_io_putl ddi_io_put32
113 101 #define ddi_getb ddi_get8
114 102 #define ddi_getw ddi_get16
115 103 #define ddi_getl ddi_get32
116 104 #define ddi_getll ddi_get64
117 105 #define ddi_rep_getb ddi_rep_get8
118 106 #define ddi_rep_getw ddi_rep_get16
119 107 #define ddi_rep_getl ddi_rep_get32
120 108 #define ddi_rep_getll ddi_rep_get64
121 109 #define ddi_putb ddi_put8
122 110 #define ddi_putw ddi_put16
123 111 #define ddi_putl ddi_put32
124 112 #define ddi_putll ddi_put64
125 113 #define ddi_rep_putb ddi_rep_put8
126 114 #define ddi_rep_putw ddi_rep_put16
127 115 #define ddi_rep_putl ddi_rep_put32
128 116 #define ddi_rep_putll ddi_rep_put64
129 117
130 118 /* These can't be define's since they're not asm routines */
131 119 void ddi_io_rep_getb(ddi_acc_handle_t handle, uint8_t *host_addr,
132 120 uint8_t *dev_addr, size_t repcount);
133 121 void ddi_io_rep_getw(ddi_acc_handle_t handle, uint16_t *host_addr,
134 122 uint16_t *dev_addr, size_t repcount);
135 123 void ddi_io_rep_getl(ddi_acc_handle_t handle, uint32_t *host_addr,
136 124 uint32_t *dev_addr, size_t repcount);
137 125 void ddi_io_rep_putb(ddi_acc_handle_t handle, uint8_t *host_addr,
138 126 uint8_t *dev_addr, size_t repcount);
139 127 void ddi_io_rep_putw(ddi_acc_handle_t handle, uint16_t *host_addr,
140 128 uint16_t *dev_addr, size_t repcount);
141 129 void ddi_io_rep_putl(ddi_acc_handle_t handle, uint32_t *host_addr,
142 130 uint32_t *dev_addr, size_t repcount);
143 131
144 132 int ddi_peekc(dev_info_t *dip, int8_t *addr, int8_t *val_p);
145 133 int ddi_peeks(dev_info_t *dip, int16_t *addr, int16_t *val_p);
146 134 int ddi_peekl(dev_info_t *dip, int32_t *addr, int32_t *val_p);
147 135 int ddi_peekd(dev_info_t *dip, int64_t *addr, int64_t *val_p);
148 136 int ddi_pokec(dev_info_t *dip, int8_t *addr, int8_t val);
149 137 int ddi_pokes(dev_info_t *dip, int16_t *addr, int16_t val);
150 138 int ddi_pokel(dev_info_t *dip, int32_t *addr, int32_t val);
151 139 int ddi_poked(dev_info_t *dip, int64_t *addr, int64_t val);
152 140
153 141 uint8_t pci_config_getb(ddi_acc_handle_t handle, off_t offset);
154 142 uint16_t pci_config_getw(ddi_acc_handle_t handle, off_t offset);
155 143 uint32_t pci_config_getl(ddi_acc_handle_t handle, off_t offset);
156 144 uint64_t pci_config_getll(ddi_acc_handle_t handle, off_t offset);
157 145 void pci_config_putb(ddi_acc_handle_t handle, off_t offset, uint8_t value);
158 146 void pci_config_putw(ddi_acc_handle_t handle, off_t offset, uint16_t value);
159 147 void pci_config_putl(ddi_acc_handle_t handle, off_t offset, uint32_t value);
160 148 void pci_config_putll(ddi_acc_handle_t handle, off_t offset, uint64_t value);
161 149
162 150 extern void repinsb(int port, uint8_t *addr, int count);
163 151 extern void repinsw(int port, uint16_t *addr, int count);
164 152 extern void repinsd(int port, uint32_t *addr, int count);
165 153 extern void repoutsb(int port, uint8_t *addr, int count);
166 154 extern void repoutsw(int port, uint16_t *addr, int count);
167 155 extern void repoutsd(int port, uint32_t *addr, int count);
168 156 #endif
169 157
170 158 /* Obsolete LDI event interfaces */
171 159 extern int ldi_get_eventcookie(ldi_handle_t, char *,
172 160 ddi_eventcookie_t *);
173 161 extern int ldi_add_event_handler(ldi_handle_t, ddi_eventcookie_t,
174 162 void (*handler)(ldi_handle_t, ddi_eventcookie_t, void *, void *),
175 163 void *, ldi_callback_id_t *);
176 164 extern int ldi_remove_event_handler(ldi_handle_t, ldi_callback_id_t);
177 165
178 166
179 167 #endif /* not _DDI_STRICT */
180 168
181 169 #ifdef __cplusplus
182 170 }
183 171 #endif
184 172
185 173 #endif /* _SYS_DDI_OBSOLETE_H */
↓ open down ↓ |
133 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX