76 unsigned char b_ConfigType;
80 switch (b_ConfigType) {
83 (
unsigned char) data[0],
84 (
unsigned char) data[1],
85 (
unsigned char) data[2],
86 (
unsigned int) data[3],
87 (
unsigned int) data[4],
88 (
unsigned int *) &data[0],
89 (
unsigned int *) &data[1]
95 (
unsigned char) data[0],
96 (
unsigned char *) &data[0],
97 (
unsigned int *) &data[1],
98 (
unsigned int *) &data[2],
99 (
unsigned char *) &data[3],
100 (
unsigned char *) &data[4],
101 (
unsigned char *) &data[5],
102 (
unsigned char *) &data[6],
103 (
unsigned char *) &data[7],
104 (
unsigned char *) &data[8]
109 printk(
" Config Parameter Wrong\n");
112 if (i_ReturnValue >= 0)
113 i_ReturnValue = insn->
n;
185 unsigned char b_ClockSelection,
186 unsigned char b_TimingUnit,
187 unsigned int ul_LowTiming,
188 unsigned int ul_HighTiming,
189 unsigned int *pul_RealLowTiming,
unsigned int *pul_RealHighTiming)
192 unsigned int ul_LowTimerValue = 0;
193 unsigned int ul_HighTimerValue = 0;
194 unsigned int dw_Command;
195 double d_RealLowTiming = 0;
196 double d_RealHighTiming = 0;
202 if (b_ModulNbr < 4) {
208 dw_MolduleConfiguration[b_ModulNbr] &
226 if (b_TimingUnit <= 4) {
231 if (((b_ClockSelection ==
240 || ((b_ClockSelection ==
249 || ((b_ClockSelection ==
258 || ((b_ClockSelection ==
267 || ((b_ClockSelection ==
275 || ((b_ClockSelection ==
284 || ((b_ClockSelection ==
293 || ((b_ClockSelection ==
302 || ((b_ClockSelection ==
311 || ((b_ClockSelection ==
319 || ((b_ClockSelection ==
328 || ((b_ClockSelection ==
337 || ((b_ClockSelection ==
346 || ((b_ClockSelection ==
355 || ((b_ClockSelection ==
368 if (((b_ClockSelection ==
APCI1710_30MHZ) && (b_TimingUnit == 0) && (ul_HighTiming >= 266) && (ul_HighTiming <= 0xFFFFFFFFUL)) || ((b_ClockSelection ==
APCI1710_30MHZ) && (b_TimingUnit == 1) && (ul_HighTiming >= 1) && (ul_HighTiming <= 571230650
UL)) || ((b_ClockSelection ==
APCI1710_30MHZ) && (b_TimingUnit == 2) && (ul_HighTiming >= 1) && (ul_HighTiming <= 571230
UL)) || ((b_ClockSelection ==
APCI1710_30MHZ) && (b_TimingUnit == 3) && (ul_HighTiming >= 1) && (ul_HighTiming <= 571
UL)) || ((b_ClockSelection ==
APCI1710_30MHZ) && (b_TimingUnit == 4) && (ul_HighTiming >= 1) && (ul_HighTiming <= 9
UL)) || ((b_ClockSelection ==
APCI1710_33MHZ) && (b_TimingUnit == 0) && (ul_HighTiming >= 242) && (ul_HighTiming <= 0xFFFFFFFFUL)) || ((b_ClockSelection ==
APCI1710_33MHZ) && (b_TimingUnit == 1) && (ul_HighTiming >= 1) && (ul_HighTiming <= 519691043
UL)) || ((b_ClockSelection ==
APCI1710_33MHZ) && (b_TimingUnit == 2) && (ul_HighTiming >= 1) && (ul_HighTiming <= 519691
UL)) || ((b_ClockSelection ==
APCI1710_33MHZ) && (b_TimingUnit == 3) && (ul_HighTiming >= 1) && (ul_HighTiming <= 520
UL)) || ((b_ClockSelection ==
APCI1710_33MHZ) && (b_TimingUnit == 4) && (ul_HighTiming >= 1) && (ul_HighTiming <= 8
UL)) || ((b_ClockSelection ==
APCI1710_40MHZ) && (b_TimingUnit == 0) && (ul_HighTiming >= 200) && (ul_HighTiming <= 0xFFFFFFFFUL)) || ((b_ClockSelection ==
APCI1710_40MHZ) && (b_TimingUnit == 1) && (ul_HighTiming >= 1) && (ul_HighTiming <= 429496729
UL)) || ((b_ClockSelection ==
APCI1710_40MHZ) && (b_TimingUnit == 2) && (ul_HighTiming >= 1) && (ul_HighTiming <= 429496
UL)) || ((b_ClockSelection ==
APCI1710_40MHZ) && (b_TimingUnit == 3) && (ul_HighTiming >= 1) && (ul_HighTiming <= 429
UL)) || ((b_ClockSelection ==
APCI1710_40MHZ) && (b_TimingUnit == 4) && (ul_HighTiming >= 1) && (ul_HighTiming <= 7
UL))) {
382 switch (b_TimingUnit) {
398 (0.00025 * b_ClockSelection));
404 if ((
double)((double)ul_LowTiming * (0.00025 * (
double)b_ClockSelection)) >= ((double)((
double)ul_LowTimerValue + 0.5))) {
421 (0.00025 * (
double)b_ClockSelection));
432 if ((
double)((double)ul_LowTimerValue / (0.00025 * (
double)b_ClockSelection)) >= (double)((
double)*pul_RealLowTiming + 0.5)) {
479 (0.25 * b_ClockSelection));
485 if ((
double)((double)ul_LowTiming * (0.25 * (
double)b_ClockSelection)) >= ((double)((
double)ul_LowTimerValue + 0.5))) {
502 (0.25 * (
double)b_ClockSelection));
515 if ((
double)((double)ul_LowTimerValue / (0.25 * (
double)b_ClockSelection)) >= (double)((
double)*pul_RealLowTiming + 0.5)) {
569 if ((
double)((double)ul_LowTiming * (250.0 * (
double)b_ClockSelection)) >= ((double)((
double)ul_LowTimerValue + 0.5))) {
586 (250.0 * (
double)b_ClockSelection));
597 if ((
double)((double)ul_LowTimerValue / (250.0 * (
double)b_ClockSelection)) >= (double)((
double)*pul_RealLowTiming + 0.5)) {
651 if ((
double)((double)ul_LowTiming * (250000.0 * (
double)b_ClockSelection)) >= ((double)((
double)ul_LowTimerValue + 0.5))) {
682 if ((
double)((double)ul_LowTimerValue / (250000.0 * (
double)b_ClockSelection)) >= (double)((
double)*pul_RealLowTiming + 0.5)) {
740 if ((
double)((double)(ul_LowTiming * 60.0) * (250000.0 * (double)b_ClockSelection)) >= ((
double)((double)ul_LowTimerValue + 0.5))) {
776 if ((
double)(((double)ul_LowTimerValue / (250000.0 * (
double)b_ClockSelection)) / 60.0) >= (double)((
double)*pul_RealLowTiming + 0.5)) {
813 switch (b_TimingUnit) {
829 (0.00025 * b_ClockSelection));
835 if ((
double)((double)ul_HighTiming * (0.00025 * (
double)b_ClockSelection)) >= ((double)((
double)ul_HighTimerValue + 0.5))) {
852 (0.00025 * (
double)b_ClockSelection));
863 if ((
double)((double)ul_HighTimerValue / (0.00025 * (
double)b_ClockSelection)) >= (double)((
double)*pul_RealHighTiming + 0.5)) {
910 (0.25 * b_ClockSelection));
916 if ((
double)((double)ul_HighTiming * (0.25 * (
double)b_ClockSelection)) >= ((double)((
double)ul_HighTimerValue + 0.5))) {
933 (0.25 * (
double)b_ClockSelection));
946 if ((
double)((double)ul_HighTimerValue / (0.25 * (
double)b_ClockSelection)) >= (double)((
double)*pul_RealHighTiming + 0.5)) {
1000 if ((
double)((double)ul_HighTiming * (250.0 * (
double)b_ClockSelection)) >= ((double)((
double)ul_HighTimerValue + 0.5))) {
1017 (250.0 * (
double)b_ClockSelection));
1028 if ((
double)((double)ul_HighTimerValue / (250.0 * (
double)b_ClockSelection)) >= (double)((
double)*pul_RealHighTiming + 0.5)) {
1083 if ((
double)((double)ul_HighTiming * (250000.0 * (
double)b_ClockSelection)) >= ((double)((
double)ul_HighTimerValue + 0.5))) {
1114 if ((
double)((double)ul_HighTimerValue / (250000.0 * (
double)b_ClockSelection)) >= (double)((
double)*pul_RealHighTiming + 0.5)) {
1172 if ((
double)((double)(ul_HighTiming * 60.0) * (250000.0 * (double)b_ClockSelection)) >= ((
double)((double)ul_HighTimerValue + 0.5))) {
1208 if ((
double)(((double)ul_HighTimerValue / (250000.0 * (
double)b_ClockSelection)) / 60.0) >= (double)((
double)*pul_RealHighTiming + 0.5)) {
1314 *pul_RealHighTiming;
1320 outl(ul_LowTimerValue,
devpriv->s_BoardInfos.ui_Address + 0 + (20 * b_PWM) + (64 * b_ModulNbr));
1326 outl(ul_HighTimerValue,
devpriv->s_BoardInfos.ui_Address + 4 + (20 * b_PWM) + (64 * b_ModulNbr));
1341 (20 * b_PWM) + (64 * b_ModulNbr));
1361 outl(dw_Command,
devpriv->s_BoardInfos.ui_Address + 8 + (20 * b_PWM) + (64 * b_ModulNbr));
1380 DPRINTK(
"You can not used the 40MHz clock selection with this board\n");
1389 DPRINTK(
"High base timing selection is wrong\n");
1397 DPRINTK(
"Low base timing selection is wrong\n");
1405 DPRINTK(
"Timing unit selection is wrong\n");
1413 DPRINTK(
"The selected clock is wrong\n");
1421 DPRINTK(
"Tor PWM selection is wrong\n");
1428 DPRINTK(
"The module is not a PWM module\n");
1435 DPRINTK(
"Module number error\n");
1539 unsigned char b_PWM,
1540 unsigned char *pb_TimingUnit,
1541 unsigned int *pul_LowTiming,
1542 unsigned int *pul_HighTiming,
1543 unsigned char *pb_StartLevel,
1544 unsigned char *pb_StopMode,
1545 unsigned char *pb_StopLevel,
1546 unsigned char *pb_ExternGate,
unsigned char *pb_InterruptEnable,
unsigned char *pb_Enable)
1549 unsigned int dw_Status;
1550 unsigned int dw_Command;
1556 if (b_ModulNbr < 4) {
1562 dw_MolduleConfiguration[b_ModulNbr] &
1574 ui_Address + 12 + (20 * b_PWM) +
1577 if (dw_Status & 0x10) {
1584 ui_Address + 0 + (20 * b_PWM) +
1593 ui_Address + 4 + (20 * b_PWM) +
1601 ui_Address + 8 + (20 * b_PWM) +
1605 (
unsigned char) ((dw_Command >> 5) & 1);
1607 (
unsigned char) ((dw_Command >> 0) & 1);
1609 (
unsigned char) ((dw_Command >> 1) & 1);
1611 (
unsigned char) ((dw_Command >> 4) & 1);
1612 *pb_InterruptEnable =
1613 (
unsigned char) ((dw_Command >> 3) & 1);
1615 if (*pb_StopLevel) {
1618 (
unsigned char) ((dw_Command >>
1627 ui_Address + 8 + (20 * b_PWM) +
1631 (
unsigned char) ((dw_Command >> 0) & 1);
1636 s_PWMInfo[b_PWM].b_TimingUnit;
1642 DPRINTK(
"PWM not initialised\n");
1650 DPRINTK(
"Tor PWM selection is wrong\n");
1657 DPRINTK(
"The module is not a PWM module\n");
1664 DPRINTK(
"Module number error\n");
1689 unsigned char b_WriteType;
1693 switch (b_WriteType) {
1697 (
unsigned char) data[0],
1698 (
unsigned char) data[1],
1699 (
unsigned char) data[2],
1700 (
unsigned char) data[3], (
unsigned char) data[4], (
unsigned char) data[5]);
1711 (
unsigned char) data[0],
1712 (
unsigned char) data[1], (
unsigned int) data[2], (
unsigned int) data[3]);
1716 printk(
"Write Config Parameter Wrong\n");
1719 if (i_ReturnValue >= 0)
1720 i_ReturnValue = insn->
n;
1811 unsigned char b_PWM,
1812 unsigned char b_StartLevel,
1813 unsigned char b_StopMode,
1814 unsigned char b_StopLevel,
unsigned char b_ExternGate,
unsigned char b_InterruptEnable)
1817 unsigned int dw_Status;
1818 unsigned int dw_Command;
1825 if (b_ModulNbr < 4) {
1831 dw_MolduleConfiguration[b_ModulNbr] &
1843 ui_Address + 12 + (20 * b_PWM) +
1846 if (dw_Status & 0x10) {
1851 if (b_StartLevel <= 1) {
1856 if (b_StopMode <= 1) {
1861 if (b_StopLevel <= 2) {
1890 (20 * b_PWM) + (64 * b_ModulNbr));
1920 if (b_StopLevel & 3) {
1927 if (b_StopLevel & 2) {
1950 outl(dw_Command,
devpriv->s_BoardInfos.ui_Address + 8 + (20 * b_PWM) + (64 * b_ModulNbr));
1955 outl(1,
devpriv->s_BoardInfos.ui_Address + 12 + (20 * b_PWM) + (64 * b_ModulNbr));
1961 DPRINTK(
"Interrupt parameter is wrong\n");
1971 DPRINTK(
"Extern gate signal selection is wrong\n");
1981 DPRINTK(
"PWM stop level selection is wrong\n");
1990 DPRINTK(
"PWM stop mode selection is wrong\n");
1998 DPRINTK(
"PWM start level selection is wrong\n");
2006 DPRINTK(
"PWM not initialised\n");
2014 DPRINTK(
"Tor PWM selection is wrong\n");
2021 DPRINTK(
"The module is not a PWM module\n");
2028 DPRINTK(
"Module number error\n");
2068 unsigned int dw_Status;
2074 if (b_ModulNbr < 4) {
2080 dw_MolduleConfiguration[b_ModulNbr] &
2092 ui_Address + 12 + (20 * b_PWM) +
2095 if (dw_Status & 0x10) {
2100 if (dw_Status & 0x1) {
2121 DPRINTK(
" PWM not initialised\n");
2129 DPRINTK(
"Tor PWM selection is wrong\n");
2136 DPRINTK(
"The module is not a PWM module\n");
2143 DPRINTK(
"Module number error\n");
2194 unsigned char b_PWM,
unsigned char b_TimingUnit,
unsigned int ul_LowTiming,
unsigned int ul_HighTiming)
2196 unsigned char b_ClockSelection;
2198 unsigned int ul_LowTimerValue = 0;
2199 unsigned int ul_HighTimerValue = 0;
2200 unsigned int ul_RealLowTiming = 0;
2201 unsigned int ul_RealHighTiming = 0;
2202 unsigned int dw_Status;
2203 unsigned int dw_Command;
2204 double d_RealLowTiming = 0;
2205 double d_RealHighTiming = 0;
2211 if (b_ModulNbr < 4) {
2217 dw_MolduleConfiguration[b_ModulNbr] &
2229 ui_Address + 12 + (20 * b_PWM) +
2232 if (dw_Status & 0x10) {
2242 if (b_TimingUnit <= 4) {
2247 if (((b_ClockSelection ==
2256 || ((b_ClockSelection ==
2265 || ((b_ClockSelection ==
2274 || ((b_ClockSelection ==
2283 || ((b_ClockSelection ==
2291 || ((b_ClockSelection ==
2300 || ((b_ClockSelection ==
2309 || ((b_ClockSelection ==
2318 || ((b_ClockSelection ==
2327 || ((b_ClockSelection ==
2335 || ((b_ClockSelection ==
2344 || ((b_ClockSelection ==
2353 || ((b_ClockSelection ==
2362 || ((b_ClockSelection ==
2371 || ((b_ClockSelection ==
2384 if (((b_ClockSelection ==
APCI1710_30MHZ) && (b_TimingUnit == 0) && (ul_HighTiming >= 266) && (ul_HighTiming <= 0xFFFFFFFFUL)) || ((b_ClockSelection ==
APCI1710_30MHZ) && (b_TimingUnit == 1) && (ul_HighTiming >= 1) && (ul_HighTiming <= 571230650
UL)) || ((b_ClockSelection ==
APCI1710_30MHZ) && (b_TimingUnit == 2) && (ul_HighTiming >= 1) && (ul_HighTiming <= 571230
UL)) || ((b_ClockSelection ==
APCI1710_30MHZ) && (b_TimingUnit == 3) && (ul_HighTiming >= 1) && (ul_HighTiming <= 571
UL)) || ((b_ClockSelection ==
APCI1710_30MHZ) && (b_TimingUnit == 4) && (ul_HighTiming >= 1) && (ul_HighTiming <= 9
UL)) || ((b_ClockSelection ==
APCI1710_33MHZ) && (b_TimingUnit == 0) && (ul_HighTiming >= 242) && (ul_HighTiming <= 0xFFFFFFFFUL)) || ((b_ClockSelection ==
APCI1710_33MHZ) && (b_TimingUnit == 1) && (ul_HighTiming >= 1) && (ul_HighTiming <= 519691043
UL)) || ((b_ClockSelection ==
APCI1710_33MHZ) && (b_TimingUnit == 2) && (ul_HighTiming >= 1) && (ul_HighTiming <= 519691
UL)) || ((b_ClockSelection ==
APCI1710_33MHZ) && (b_TimingUnit == 3) && (ul_HighTiming >= 1) && (ul_HighTiming <= 520
UL)) || ((b_ClockSelection ==
APCI1710_33MHZ) && (b_TimingUnit == 4) && (ul_HighTiming >= 1) && (ul_HighTiming <= 8
UL)) || ((b_ClockSelection ==
APCI1710_40MHZ) && (b_TimingUnit == 0) && (ul_HighTiming >= 200) && (ul_HighTiming <= 0xFFFFFFFFUL)) || ((b_ClockSelection ==
APCI1710_40MHZ) && (b_TimingUnit == 1) && (ul_HighTiming >= 1) && (ul_HighTiming <= 429496729
UL)) || ((b_ClockSelection ==
APCI1710_40MHZ) && (b_TimingUnit == 2) && (ul_HighTiming >= 1) && (ul_HighTiming <= 429496
UL)) || ((b_ClockSelection ==
APCI1710_40MHZ) && (b_TimingUnit == 3) && (ul_HighTiming >= 1) && (ul_HighTiming <= 429
UL)) || ((b_ClockSelection ==
APCI1710_40MHZ) && (b_TimingUnit == 4) && (ul_HighTiming >= 1) && (ul_HighTiming <= 7
UL))) {
2390 switch (b_TimingUnit) {
2406 (0.00025 * b_ClockSelection));
2412 if ((
double)((double)ul_LowTiming * (0.00025 * (
double)b_ClockSelection)) >= ((double)((
double)ul_LowTimerValue + 0.5))) {
2429 (0.00025 * (
double)b_ClockSelection));
2440 if ((
double)((double)ul_LowTimerValue / (0.00025 * (
double)b_ClockSelection)) >= (double)((
double)ul_RealLowTiming + 0.5)) {
2487 (0.25 * b_ClockSelection));
2493 if ((
double)((double)ul_LowTiming * (0.25 * (
double)b_ClockSelection)) >= ((double)((
double)ul_LowTimerValue + 0.5))) {
2510 (0.25 * (
double)b_ClockSelection));
2523 if ((
double)((double)ul_LowTimerValue / (0.25 * (
double)b_ClockSelection)) >= (double)((
double)ul_RealLowTiming + 0.5)) {
2577 if ((
double)((double)ul_LowTiming * (250.0 * (
double)b_ClockSelection)) >= ((double)((
double)ul_LowTimerValue + 0.5))) {
2594 (250.0 * (
double)b_ClockSelection));
2605 if ((
double)((double)ul_LowTimerValue / (250.0 * (
double)b_ClockSelection)) >= (double)((
double)ul_RealLowTiming + 0.5)) {
2660 if ((
double)((double)ul_LowTiming * (250000.0 * (
double)b_ClockSelection)) >= ((double)((
double)ul_LowTimerValue + 0.5))) {
2691 if ((
double)((double)ul_LowTimerValue / (250000.0 * (
double)b_ClockSelection)) >= (double)((
double)ul_RealLowTiming + 0.5)) {
2749 if ((
double)((double)(ul_LowTiming * 60.0) * (250000.0 * (double)b_ClockSelection)) >= ((
double)((double)ul_LowTimerValue + 0.5))) {
2785 if ((
double)(((double)ul_LowTimerValue / (250000.0 * (
double)b_ClockSelection)) / 60.0) >= (double)((
double)ul_RealLowTiming + 0.5)) {
2822 switch (b_TimingUnit) {
2838 (0.00025 * b_ClockSelection));
2844 if ((
double)((double)ul_HighTiming * (0.00025 * (
double)b_ClockSelection)) >= ((double)((
double)ul_HighTimerValue + 0.5))) {
2861 (0.00025 * (
double)b_ClockSelection));
2872 if ((
double)((double)ul_HighTimerValue / (0.00025 * (
double)b_ClockSelection)) >= (double)((
double)ul_RealHighTiming + 0.5)) {
2919 (0.25 * b_ClockSelection));
2925 if ((
double)((double)ul_HighTiming * (0.25 * (
double)b_ClockSelection)) >= ((double)((
double)ul_HighTimerValue + 0.5))) {
2942 (0.25 * (
double)b_ClockSelection));
2955 if ((
double)((double)ul_HighTimerValue / (0.25 * (
double)b_ClockSelection)) >= (double)((
double)ul_RealHighTiming + 0.5)) {
3009 if ((
double)((double)ul_HighTiming * (250.0 * (
double)b_ClockSelection)) >= ((double)((
double)ul_HighTimerValue + 0.5))) {
3026 (250.0 * (
double)b_ClockSelection));
3037 if ((
double)((double)ul_HighTimerValue / (250.0 * (
double)b_ClockSelection)) >= (double)((
double)ul_RealHighTiming + 0.5)) {
3092 if ((
double)((double)ul_HighTiming * (250000.0 * (
double)b_ClockSelection)) >= ((double)((
double)ul_HighTimerValue + 0.5))) {
3123 if ((
double)((double)ul_HighTimerValue / (250000.0 * (
double)b_ClockSelection)) >= (double)((
double)ul_RealHighTiming + 0.5)) {
3181 if ((
double)((double)(ul_HighTiming * 60.0) * (250000.0 * (double)b_ClockSelection)) >= ((
double)((double)ul_HighTimerValue + 0.5))) {
3217 if ((
double)(((double)ul_HighTimerValue / (250000.0 * (
double)b_ClockSelection)) / 60.0) >= (double)((
double)ul_RealHighTiming + 0.5)) {
3318 outl(ul_LowTimerValue,
devpriv->s_BoardInfos.ui_Address + 0 + (20 * b_PWM) + (64 * b_ModulNbr));
3324 outl(ul_HighTimerValue,
devpriv->s_BoardInfos.ui_Address + 4 + (20 * b_PWM) + (64 * b_ModulNbr));
3336 (20 * b_PWM) + (64 * b_ModulNbr));
3359 (20 * b_PWM) + (64 * b_ModulNbr));
3364 DPRINTK(
"High base timing selection is wrong\n");
3372 DPRINTK(
"Low base timing selection is wrong\n");
3380 DPRINTK(
"Timing unit selection is wrong\n");
3388 DPRINTK(
"PWM not initialised\n");
3396 DPRINTK(
"Tor PWM selection is wrong\n");
3403 DPRINTK(
"The module is not a PWM module\n");
3410 DPRINTK(
"Module number error\n");
3467 unsigned int dw_Status;
3470 unsigned char b_PWM;
3471 unsigned char *pb_PWMOutputStatus;
3472 unsigned char *pb_ExternGateStatus;
3474 i_ReturnValue = insn->
n;
3477 pb_PWMOutputStatus = (
unsigned char *) &data[0];
3478 pb_ExternGateStatus = (
unsigned char *) &data[1];
3484 if (b_ModulNbr < 4) {
3490 dw_MolduleConfiguration[b_ModulNbr] &
3502 ui_Address + 12 + (20 * b_PWM) +
3505 if (dw_Status & 0x10) {
3510 if (dw_Status & 0x1) {
3511 *pb_PWMOutputStatus =
3512 (
unsigned char) ((dw_Status >> 7)
3514 *pb_ExternGateStatus =
3515 (
unsigned char) ((dw_Status >> 6)
3523 DPRINTK(
"PWM not enabled \n");
3532 DPRINTK(
"PWM not initialised\n");
3541 DPRINTK(
"Tor PWM selection is wrong\n");
3549 DPRINTK(
"The module is not a PWM module\n");
3557 DPRINTK(
"Module number error\n");
3567 data[0] =
devpriv->s_InterruptParameters.
3568 s_FIFOInterruptParameters[
devpriv->
3569 s_InterruptParameters.ui_Read].b_OldModuleMask;
3570 data[1] =
devpriv->s_InterruptParameters.
3571 s_FIFOInterruptParameters[
devpriv->
3572 s_InterruptParameters.ui_Read].ul_OldInterruptMask;
3573 data[2] =
devpriv->s_InterruptParameters.
3574 s_FIFOInterruptParameters[
devpriv->
3575 s_InterruptParameters.ui_Read].ul_OldCounterLatchValue;
3582 s_InterruptParameters.