Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
89d22544
Commit
89d22544
authored
Feb 08, 2004
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] Add prefix to driver constants to prevent namespace clashes.
parent
5d016022
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
130 additions
and
130 deletions
+130
-130
drivers/scsi/arm/acornscsi.c
drivers/scsi/arm/acornscsi.c
+88
-88
drivers/scsi/arm/acornscsi.h
drivers/scsi/arm/acornscsi.h
+42
-42
No files found.
drivers/scsi/arm/acornscsi.c
View file @
89d22544
This diff is collapsed.
Click to expand it.
drivers/scsi/arm/acornscsi.h
View file @
89d22544
...
...
@@ -13,13 +13,13 @@
#define ACORNSCSI_H
/* SBIC registers */
#define
OWNID
0
#define
SBIC_OWNID
0
#define OWNID_FS1 (1<<7)
#define OWNID_FS2 (1<<6)
#define OWNID_EHP (1<<4)
#define OWNID_EAF (1<<3)
#define
CTRL
1
#define
SBIC_CTRL
1
#define CTRL_DMAMODE (1<<7)
#define CTRL_DMADBAMODE (1<<6)
#define CTRL_DMABURST (1<<5)
...
...
@@ -30,25 +30,25 @@
#define CTRL_HA (1<<1)
#define CTRL_HSP (1<<0)
#define
TIMEOUT
2
#define TOTSECTS 3
#define TOTHEADS 4
#define
TOTCYLH
5
#define
TOTCYLL
6
#define LOGADDRH 7
#define LOGADDRM2 8
#define LOGADDRM1 9
#define LOGADDRL 10
#define SECTORNUM 11
#define
HEADNUM
12
#define
CYLH
13
#define
CYLL
14
#define TARGETLUN 15
#define
SBIC_TIMEOUT
2
#define
SBIC_
TOTSECTS 3
#define
SBIC_
TOTHEADS 4
#define
SBIC_TOTCYLH
5
#define
SBIC_TOTCYLL
6
#define
SBIC_
LOGADDRH 7
#define
SBIC_
LOGADDRM2 8
#define
SBIC_
LOGADDRM1 9
#define
SBIC_
LOGADDRL 10
#define S
BIC_S
ECTORNUM 11
#define
SBIC_HEADNUM
12
#define
SBIC_CYLH
13
#define
SBIC_CYLL
14
#define
SBIC_
TARGETLUN 15
#define TARGETLUN_TLV (1<<7)
#define TARGETLUN_DOK (1<<6)
#define CMNDPHASE 16
#define S
YNCHTRANSFER
17
#define
SBIC_
CMNDPHASE 16
#define S
BIC_SYNCHTRANSFER
17
#define SYNCHTRANSFER_OF0 0x00
#define SYNCHTRANSFER_OF1 0x01
#define SYNCHTRANSFER_OF2 0x02
...
...
@@ -70,21 +70,21 @@
#define SYNCHTRANSFER_6DBA 0x60
#define SYNCHTRANSFER_7DBA 0x70
#define TRANSCNTH 18
#define TRANSCNTM 19
#define TRANSCNTL 20
#define
DESTID
21
#define
SBIC_
TRANSCNTH 18
#define
SBIC_
TRANSCNTM 19
#define
SBIC_
TRANSCNTL 20
#define
SBIC_DESTID
21
#define DESTID_SCC (1<<7)
#define DESTID_DPD (1<<6)
#define SOURCEID 22
#define S
BIC_S
OURCEID 22
#define SOURCEID_ER (1<<7)
#define SOURCEID_ES (1<<6)
#define SOURCEID_DSP (1<<5)
#define SOURCEID_SIV (1<<4)
#define S
SR
23
#define
CMND
24
#define S
BIC_SSR
23
#define
SBIC_CMND
24
#define CMND_RESET 0x00
#define CMND_ABORT 0x01
#define CMND_ASSERTATN 0x02
...
...
@@ -113,8 +113,8 @@
#define CMND_XFERINFO 0x20
#define CMND_SBT (1<<7)
#define
DATA
25
#define
ASR
26
#define
SBIC_DATA
25
#define
SBIC_ASR
26
#define ASR_INT (1<<7)
#define ASR_LCI (1<<6)
#define ASR_BSY (1<<5)
...
...
@@ -123,22 +123,22 @@
#define ASR_DBR (1<<0)
/* DMAC registers */
#define
INIT
0x00
#define
DMAC_INIT
0x00
#define INIT_8BIT (1)
#define
CHANNEL
0x80
#define
DMAC_CHANNEL
0x80
#define CHANNEL_0 0x00
#define CHANNEL_1 0x01
#define CHANNEL_2 0x02
#define CHANNEL_3 0x03
#define
TXCNTLO
0x01
#define
TXCNTHI
0x81
#define
TXADRLO
0x02
#define
TXADRMD
0x82
#define
TXADRHI
0x03
#define
DMAC_TXCNTLO
0x01
#define
DMAC_TXCNTHI
0x81
#define
DMAC_TXADRLO
0x02
#define
DMAC_TXADRMD
0x82
#define
DMAC_TXADRHI
0x03
#define D
EVCON0
0x04
#define D
MAC_DEVCON0
0x04
#define DEVCON0_AKL (1<<7)
#define DEVCON0_RQL (1<<6)
#define DEVCON0_EXW (1<<5)
...
...
@@ -148,11 +148,11 @@
#define DEVCON0_AHLD (1<<1)
#define DEVCON0_MTM (1<<0)
#define D
EVCON1
0x84
#define D
MAC_DEVCON1
0x84
#define DEVCON1_WEV (1<<1)
#define DEVCON1_BHLD (1<<0)
#define
MODECON
0x05
#define
DMAC_MODECON
0x05
#define MODECON_WOED 0x01
#define MODECON_VERIFY 0x00
#define MODECON_READ 0x04
...
...
@@ -164,14 +164,14 @@
#define MODECON_BLOCK 0x80
#define MODECON_CASCADE 0xC0
#define
STATUS
0x85
#define
DMAC_STATUS
0x85
#define STATUS_TC0 (1<<0)
#define STATUS_RQ0 (1<<4)
#define
TEMPLO
0x06
#define
TEMPHI
0x86
#define
REQREG
0x07
#define
MASKREG
0x87
#define
DMAC_TEMPLO
0x06
#define
DMAC_TEMPHI
0x86
#define
DMAC_REQREG
0x07
#define
DMAC_MASKREG
0x87
#define MASKREG_M0 0x01
#define MASKREG_M1 0x02
#define MASKREG_M2 0x04
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment