summaryrefslogtreecommitdiff
path: root/i386
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2006-11-05 16:36:31 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-06-18 00:26:50 +0200
commit7e8b31e61e4bd9207bde37662e757a5988c556df (patch)
tree48dff82f7555f01ce6e7898a8fd217f28b9d0253 /i386
parent99fe1e9c73da8f28b7949546974ca84cb08042ac (diff)
2006-11-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
* DEVELOPMENT: Document the removals. Drop MB1/MB2/EXL architecture support. * i386/i386/pit.h (PITCTR0_PORT, PITCTR1_PORT, PITCTR2_PORT) (PITCTL_PORT, CLKNUM): Remove MB1/MB2/EXL cases. [EXL] (time_latch): Remove structure and type. [EXL] (intr_disable, intr_restore): Remove functions.
Diffstat (limited to 'i386')
-rw-r--r--i386/i386/pit.h39
1 files changed, 1 insertions, 38 deletions
diff --git a/i386/i386/pit.h b/i386/i386/pit.h
index 4cee44b..b59d8c5 100644
--- a/i386/i386/pit.h
+++ b/i386/i386/pit.h
@@ -45,13 +45,7 @@ NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#if defined(MB1) || defined(MB2) || EXL > 0
-/* Definitions for 8254 Programmable Interrupt Timer ports on 386/20 */
-#define PITCTR0_PORT 0xD0 /* counter 0 port */
-#define PITCTR1_PORT 0xD2 /* counter 1 port */
-#define PITCTR2_PORT 0xD4 /* counter 2 port */
-#define PITCTL_PORT 0xD6 /* PIT control port */
-#else /* defined(AT386) */
+#if defined(AT386)
/* Definitions for 8254 Programmable Interrupt Timer ports on AT 386 */
#define PITCTR0_PORT 0x40 /* counter 0 port */
#define PITCTR1_PORT 0x41 /* counter 1 port */
@@ -83,34 +77,3 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#if AT386
#define CLKNUM 1193167
#endif /* AT386 */
-#if defined(MB1)
-#define CLKNUM 12300
-#endif
-#if defined(MB2) || EXL > 0
-#define CLKNUM 12500
-#endif
-
-#if EXL
-/* added micro-timer support. --- csy */
-typedef struct time_latch {
- time_t ticks; /* time in HZ since boot */
- time_t uticks; /* time in 1.25 MHZ */
-/* don't need these two for now. --- csy */
-#if 0
- time_t secs; /* seconds since boot */
- time_t epochsecs; /* seconds since epoch */
-#endif
- } time_latch;
-/* a couple in-line assembly codes for efficiency. */
-asm int intr_disable()
-{
- pushfl
- cli
-}
-
-asm int intr_restore()
-{
- popfl
-}
-
-#endif /* EXL */