OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [rc203soc/] [sw/] [uClinux/] [include/] [asm-m68k/] [amihdreg.h] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1633 jcastillo
#ifndef _LINUX_AMIHDREG_H
2
#define _LINUX_AMIHDREG_H
3
 
4
/*
5
 * This file contains some defines for the Amiga IDE hd controller.
6
 * Various sources. Check out some definitions (see comments with
7
 * a ques).
8
 */
9
 
10
#define IDE_DISABLE_IRQ  0x02
11
#define IDE_ENABLE_IRQ   0x00
12
 
13
/* Bases of the hard drive controller */
14
#define HD_BASE_A4000   0xdd2020
15
#define HD_BASE_A1200   0xda0000
16
 
17
/* Offsets from one of the above bases */
18
#define AMI_HD_ERROR    (0x06)          /* see err-bits */
19
#define AMI_HD_NSECTOR  (0x0a)          /* nr of sectors to read/write */
20
#define AMI_HD_SECTOR   (0x0e)          /* starting sector */
21
#define AMI_HD_LCYL     (0x12)          /* starting cylinder */
22
#define AMI_HD_HCYL     (0x16)          /* high byte of starting cyl */
23
#define AMI_HD_SELECT   (0x1a)          /* 101dhhhh , d=drive, hhhh=head */
24
#define AMI_HD_STATUS   (0x1e)          /* see status-bits */
25
#define AMI_HD_CMD      (0x101a)
26
 
27
/* These are at different offsets from the base */
28
#define HD_A4000_IRQ    (0xdd3020)      /* MSB = 1, Harddisk is source of interrupt */
29
#define HD_A1200_IRQ    (0xda9000)      /* MSB = 1, Harddisk is source of interrupt */
30
 
31
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.