i8237.cc (11793:ef606668d247) i8237.cc (13229:b45254f2733a)
1/*
2 * Copyright (c) 2008 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 86 unchanged lines hidden (view full) ---

95 panic("Write to i8237 channel 3 starting "
96 "word count unimplemented.\n");
97 case 0x8:
98 panic("Write to i8237 command register unimplemented.\n");
99 case 0x9:
100 panic("Write to i8237 request register unimplemented.\n");
101 case 0xa:
102 {
1/*
2 * Copyright (c) 2008 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 86 unchanged lines hidden (view full) ---

95 panic("Write to i8237 channel 3 starting "
96 "word count unimplemented.\n");
97 case 0x8:
98 panic("Write to i8237 command register unimplemented.\n");
99 case 0x9:
100 panic("Write to i8237 request register unimplemented.\n");
101 case 0xa:
102 {
103 uint8_t command = pkt->get();
103 uint8_t command = pkt->getLE<uint8_t>();
104 uint8_t select = bits(command, 1, 0);
105 uint8_t bitVal = bits(command, 2);
106 if (!bitVal)
107 panic("Turning on i8237 channels unimplemented.\n");
108 replaceBits(maskReg, select, bitVal);
109 }
110 break;
111 case 0xb:

--- 34 unchanged lines hidden ---
104 uint8_t select = bits(command, 1, 0);
105 uint8_t bitVal = bits(command, 2);
106 if (!bitVal)
107 panic("Turning on i8237 channels unimplemented.\n");
108 replaceBits(maskReg, select, bitVal);
109 }
110 break;
111 case 0xb:

--- 34 unchanged lines hidden ---