| 1 | /*********************************************************************** |
| 2 | * The langford ioctl header. |
| 3 | * |
| 4 | * This includes memory locations and offset for all possible calls within |
| 5 | * the langford device. |
| 6 | * |
| 7 | * (c) 2013 Per Vices Corporation |
| 8 | * |
| 9 | * See LICENSE.txt for license and copyright information. |
| 10 | ************************************************************************/ |
| 11 | |
| 12 | /*After adding more ioctl functions, be sure to update both the driver (ioctl handler) and the driver utility*/ |
| 13 | |
| 14 | #ifndef __PV_DRIVER_IOCTL_H |
| 15 | #define __PV_DRIVER_IOCTL_Hcxx . . $ `langford_ioctl.h:15:9`! |
| 16 | |
| 17 | |
| 18 | /*ioctl arguments*/ |
| 19 | #define IOCTL_GET_N21at0cxx . . $ `langford_ioctl.h:19:9`! 100 |
| 20 | #define IOCTL_SET_N21at0cxx . . $ `langford_ioctl.h:20:9`! 101 |
| 21 | #define IOCTL_GET_N22at0cxx . . $ `langford_ioctl.h:21:9`! 102 |
| 22 | #define IOCTL_SET_N22at0cxx . . $ `langford_ioctl.h:22:9`! 103 |
| 23 | #define IOCTL_GET_N3GAINcxx . . $ `langford_ioctl.h:23:9`! 104 |
| 24 | #define IOCTL_SET_N3GAINcxx . . $ `langford_ioctl.h:24:9`! 105 |
| 25 | #define IOCTL_SET_N3GAINcxx . . $ `langford_ioctl.h:25:9`! 105 |
| 26 | |
| 27 | #define IOCTL_GET_N61CEcxx . . $ `langford_ioctl.h:27:9`! 200 |
| 28 | #define IOCTL_SET_N61CEcxx . . $ `langford_ioctl.h:28:9`! 201 |
| 29 | #define IOCTL_GET_N61DATAcxx . . $ `langford_ioctl.h:29:9`! 202 |
| 30 | #define IOCTL_SET_N61DATAcxx . . $ `langford_ioctl.h:30:9`! 203 |
| 31 | #define IOCTL_GET_N61CLKcxx . . $ `langford_ioctl.h:31:9`! 204 |
| 32 | #define IOCTL_SET_N61CLKcxx . . $ `langford_ioctl.h:32:9`! 205 |
| 33 | #define IOCTL_GET_N61LEcxx . . $ `langford_ioctl.h:33:9`! 206 |
| 34 | #define IOCTL_SET_N61LEcxx . . $ `langford_ioctl.h:34:9`! 207 |
| 35 | #define IOCTL_GET_N62CEcxx . . $ `langford_ioctl.h:35:9`! 208 |
| 36 | #define IOCTL_SET_N62CEcxx . . $ `langford_ioctl.h:36:9`! 209 |
| 37 | #define IOCTL_GET_N62DATAcxx . . $ `langford_ioctl.h:37:9`! 210 |
| 38 | #define IOCTL_SET_N62DATAcxx . . $ `langford_ioctl.h:38:9`! 211 |
| 39 | #define IOCTL_GET_N62CLKcxx . . $ `langford_ioctl.h:39:9`! 212 |
| 40 | #define IOCTL_SET_N62CLKcxx . . $ `langford_ioctl.h:40:9`! 213 |
| 41 | #define IOCTL_GET_N62LEcxx . . $ `langford_ioctl.h:41:9`! 214 |
| 42 | #define IOCTL_SET_N62LEcxx . . $ `langford_ioctl.h:42:9`! 215 |
| 43 | #define IOCTL_GET_N3ENBcxx . . $ `langford_ioctl.h:43:9`! 216 |
| 44 | #define IOCTL_SET_N3ENBcxx . . $ `langford_ioctl.h:44:9`! 217 |
| 45 | #define IOCTL_GET_N3HILOcxx . . $ `langford_ioctl.h:45:9`! 218 |
| 46 | #define IOCTL_SET_N3HILOcxx . . $ `langford_ioctl.h:46:9`! 219 |
| 47 | #define IOCTL_GET_NASRxAcxx . . $ `langford_ioctl.h:47:9`! 220 |
| 48 | #define IOCTL_SET_NASRxAcxx . . $ `langford_ioctl.h:48:9`! 221 |
| 49 | #define IOCTL_GET_NASTxAcxx . . $ `langford_ioctl.h:49:9`! 222 |
| 50 | #define IOCTL_SET_NASTxAcxx . . $ `langford_ioctl.h:50:9`! 223 |
| 51 | #define IOCTL_GET_N7CLKcxx . . $ `langford_ioctl.h:51:9`! 224 |
| 52 | #define IOCTL_SET_N7CLKcxx . . $ `langford_ioctl.h:52:9`! 225 |
| 53 | #define IOCTL_GET_N7CScxx . . $ `langford_ioctl.h:53:9`! 226 |
| 54 | #define IOCTL_SET_N7CScxx . . $ `langford_ioctl.h:54:9`! 227 |
| 55 | #define IOCTL_GET_N7SDIcxx . . $ `langford_ioctl.h:55:9`! 228 |
| 56 | #define IOCTL_SET_N7SDIcxx . . $ `langford_ioctl.h:56:9`! 229 |
| 57 | #define IOCTL_GET_DACIQSelcxx . . $ `langford_ioctl.h:57:9`! 230 |
| 58 | #define IOCTL_SET_DACIQSelcxx . . $ `langford_ioctl.h:58:9`! 231 |
| 59 | #define IOCTL_GET_DACResetcxx . . $ `langford_ioctl.h:59:9`! 232 |
| 60 | #define IOCTL_SET_DACResetcxx . . $ `langford_ioctl.h:60:9`! 233 |
| 61 | #define IOCTL_GET_DACCSBcxx . . $ `langford_ioctl.h:61:9`! 234 |
| 62 | #define IOCTL_SET_DACCSBcxx . . $ `langford_ioctl.h:62:9`! 235 |
| 63 | #define IOCTL_GET_DACSDIOcxx . . $ `langford_ioctl.h:63:9`! 236 |
| 64 | #define IOCTL_SET_DACSDIOcxx . . $ `langford_ioctl.h:64:9`! 237 |
| 65 | #define IOCTL_GET_DACSClkcxx . . $ `langford_ioctl.h:65:9`! 238 |
| 66 | #define IOCTL_SET_DACSClkcxx . . $ `langford_ioctl.h:66:9`! 239 |
| 67 | #define IOCTL_GET_ADCAnOEcxx . . $ `langford_ioctl.h:67:9`! 240 |
| 68 | #define IOCTL_SET_ADCAnOEcxx . . $ `langford_ioctl.h:68:9`! 241 |
| 69 | #define IOCTL_GET_ADCAPDcxx . . $ `langford_ioctl.h:69:9`! 242 |
| 70 | #define IOCTL_SET_ADCAPDcxx . . $ `langford_ioctl.h:70:9`! 243 |
| 71 | #define IOCTL_GET_ADCASClkcxx . . $ `langford_ioctl.h:71:9`! 244 |
| 72 | #define IOCTL_SET_ADCASClkcxx . . $ `langford_ioctl.h:72:9`! 245 |
| 73 | #define IOCTL_GET_ADCASDIOcxx . . $ `langford_ioctl.h:73:9`! 246 |
| 74 | #define IOCTL_SET_ADCASDIOcxx . . $ `langford_ioctl.h:74:9`! 247 |
| 75 | #define IOCTL_GET_ADCAnCScxx . . $ `langford_ioctl.h:75:9`! 248 |
| 76 | #define IOCTL_SET_ADCAnCScxx . . $ `langford_ioctl.h:76:9`! 249 |
| 77 | #define IOCTL_GET_ADCBnOEcxx . . $ `langford_ioctl.h:77:9`! 250 |
| 78 | #define IOCTL_SET_ADCBnOEcxx . . $ `langford_ioctl.h:78:9`! 251 |
| 79 | #define IOCTL_GET_ADCBPDcxx . . $ `langford_ioctl.h:79:9`! 252 |
| 80 | #define IOCTL_SET_ADCBPDcxx . . $ `langford_ioctl.h:80:9`! 253 |
| 81 | #define IOCTL_GET_ADCBSClkcxx . . $ `langford_ioctl.h:81:9`! 254 |
| 82 | #define IOCTL_SET_ADCBSClkcxx . . $ `langford_ioctl.h:82:9`! 255 |
| 83 | #define IOCTL_GET_ADCBSDIOcxx . . $ `langford_ioctl.h:83:9`! 256 |
| 84 | #define IOCTL_SET_ADCBSDIOcxx . . $ `langford_ioctl.h:84:9`! 257 |
| 85 | #define IOCTL_GET_ADCBnCScxx . . $ `langford_ioctl.h:85:9`! 258 |
| 86 | #define IOCTL_SET_ADCBnCScxx . . $ `langford_ioctl.h:86:9`! 259 |
| 87 | #define IOCTL_GET_DACSDOcxx . . $ `langford_ioctl.h:87:9`! 260 |
| 88 | #define IOCTL_SET_DACSDOcxx . . $ `langford_ioctl.h:88:9`! 261 |
| 89 | |
| 90 | #define IOCTL_GET_N61MUXOUTcxx . . $ `langford_ioctl.h:90:9`! 300 |
| 91 | #define IOCTL_GET_N61LDcxx . . $ `langford_ioctl.h:91:9`! 301 |
| 92 | #define IOCTL_GET_N62MUXOUTcxx . . $ `langford_ioctl.h:92:9`! 302 |
| 93 | #define IOCTL_GET_N62LDcxx . . $ `langford_ioctl.h:93:9`! 303 |
| 94 | #define IOCTL_GET_N7SDOcxx . . $ `langford_ioctl.h:94:9`! 304 |
| 95 | #define IOCTL_GET_GPIOincxx . . $ `langford_ioctl.h:95:9`! 305 |
| 96 | |
| 97 | #define IOCTL_GET_RXPhasecxx . . $ `langford_ioctl.h:97:9`! 400 |
| 98 | #define IOCTL_SET_RXPhasecxx . . $ `langford_ioctl.h:98:9`! 401 |
| 99 | |
| 100 | #define IOCTL_GET_TXPhasecxx . . $ `langford_ioctl.h:100:9`! 500 |
| 101 | #define IOCTL_SET_TXPhasecxx . . $ `langford_ioctl.h:101:9`! 501 |
| 102 | |
| 103 | #define IOCTL_GET_RXDecEncxx . . $ `langford_ioctl.h:103:9`! 600 |
| 104 | #define IOCTL_SET_RXDecEncxx . . $ `langford_ioctl.h:104:9`! 601 |
| 105 | #define IOCTL_GET_TXIntEncxx . . $ `langford_ioctl.h:105:9`! 602 |
| 106 | #define IOCTL_SET_TXIntEncxx . . $ `langford_ioctl.h:106:9`! 603 |
| 107 | #define IOCTL_GET_RXRevFreqcxx . . $ `langford_ioctl.h:107:9`! 604 |
| 108 | #define IOCTL_SET_RXRevFreqcxx . . $ `langford_ioctl.h:108:9`! 605 |
| 109 | #define IOCTL_GET_TXRevFreqcxx . . $ `langford_ioctl.h:109:9`! 606 |
| 110 | #define IOCTL_SET_TXRevFreqcxx . . $ `langford_ioctl.h:110:9`! 607 |
| 111 | #define IOCTL_GET_RxDspEncxx . . $ `langford_ioctl.h:111:9`! 608 |
| 112 | #define IOCTL_SET_RxDspEncxx . . $ `langford_ioctl.h:112:9`! 609 |
| 113 | #define IOCTL_GET_TxDspEncxx . . $ `langford_ioctl.h:113:9`! 610 |
| 114 | #define IOCTL_SET_TxDspEncxx . . $ `langford_ioctl.h:114:9`! 611 |
| 115 | #define IOCTL_GET_NRXTALSELcxx . . $ `langford_ioctl.h:115:9`! 612 |
| 116 | #define IOCTL_SET_NRXTALSELcxx . . $ `langford_ioctl.h:116:9`! 613 |
| 117 | #define IOCTL_GET_NRVCOSELcxx . . $ `langford_ioctl.h:117:9`! 614 |
| 118 | #define IOCTL_SET_NRVCOSELcxx . . $ `langford_ioctl.h:118:9`! 615 |
| 119 | #define IOCTL_GET_RxFifoClrcxx . . $ `langford_ioctl.h:119:9`! 616 |
| 120 | #define IOCTL_SET_RxFifoClrcxx . . $ `langford_ioctl.h:120:9`! 617 |
| 121 | #define IOCTL_GET_TxFifoClrcxx . . $ `langford_ioctl.h:121:9`! 618 |
| 122 | #define IOCTL_SET_TxFifoClrcxx . . $ `langford_ioctl.h:122:9`! 619 |
| 123 | #define IOCTL_GET_RxIsSignedcxx . . $ `langford_ioctl.h:123:9`! 620 |
| 124 | #define IOCTL_SET_RxIsSignedcxx . . $ `langford_ioctl.h:124:9`! 621 |
| 125 | #define IOCTL_GET_TxIsSignedcxx . . $ `langford_ioctl.h:125:9`! 622 |
| 126 | #define IOCTL_SET_TxIsSignedcxx . . $ `langford_ioctl.h:126:9`! 623 |
| 127 | #define IOCTL_GET_GPIOoutcxx . . $ `langford_ioctl.h:127:9`! 624 |
| 128 | #define IOCTL_SET_GPIOoutcxx . . $ `langford_ioctl.h:128:9`! 625 |
| 129 | #define IOCTL_GET_RxBasebandcxx . . $ `langford_ioctl.h:129:9`! 626 |
| 130 | #define IOCTL_SET_RxBasebandcxx . . $ `langford_ioctl.h:130:9`! 627 |
| 131 | |
| 132 | #endif |