[587] | 1 | ; Project name : XTIDE Universal BIOS
|
---|
| 2 | ; Description : Promise PDC 20230-C and 20630 VLB IDE controller
|
---|
| 3 | ; specifications.
|
---|
| 4 | ;
|
---|
| 5 | ; Specifications can be found at
|
---|
| 6 |
|
---|
| 7 | ;
|
---|
| 8 | ; XTIDE Universal BIOS and Associated Tools
|
---|
| 9 | ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2013 by XTIDE Universal BIOS Team.
|
---|
| 10 | ;
|
---|
| 11 | ; This program is free software; you can redistribute it and/or modify
|
---|
| 12 | ; it under the terms of the GNU General Public License as published by
|
---|
| 13 | ; the Free Software Foundation; either version 2 of the License, or
|
---|
| 14 | ; (at your option) any later version.
|
---|
| 15 | ;
|
---|
| 16 | ; This program is distributed in the hope that it will be useful,
|
---|
| 17 | ; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 18 | ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 19 | ; GNU General Public License for more details.
|
---|
| 20 | ; Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
---|
| 21 | ;
|
---|
| 22 |
|
---|
| 23 | %ifndef PDC20x30_INC
|
---|
| 24 | %define PDC20x30_INC
|
---|
| 25 |
|
---|
| 26 |
|
---|
| 27 | ; SECTOR_COUNT_REGISTER in programming mode
|
---|
| 28 | FLG_PDCSCR_UNKNOWN_BIT7 EQU (1<<7) ; Set to 1 for speed setting 7 of device 0 or 1
|
---|
| 29 | FLG_PDCSCR_ID3 EQU (1<<6) ; VLB bus speed: 0 > 33 MHz, 1 <= 33 MHz
|
---|
| 30 | POS_PDCSCR_DEV0SPEED EQU 3
|
---|
| 31 | MASK_PDCSCR_DEV0SPEED EQU (7<<POS_PDCSCR_DEV0SPEED) ; 0 to 7
|
---|
| 32 | MASK_PDCSCR_DEV1SPEED EQU (7<<0) ; 0 to 7
|
---|
| 33 |
|
---|
| 34 |
|
---|
| 35 | ; LOW_CYLINDER_REGISTER in programming mode
|
---|
| 36 | ; This is only on PDC 20630!
|
---|
| 37 | FLG_PDCLCR_DEV0SPEED_BIT4 EQU (1<<7) ; Possibly speed bit 4 (speed settings 8 to 15)?
|
---|
| 38 | FLG_PDCLCR_DEV1SPEED_BIT4 EQU (1<<6) ; Same as above but for device 1
|
---|
| 39 | FLG_PDCLCR_DEV0IORDY EQU (1<<5) ; Not sure about this
|
---|
| 40 | FLG_PDCLCR_DEV1IORDY EQU (1<<4) ; Same as above but for device 15
|
---|
| 41 | FLG_PDCLCR_ENABLE_EXTRA_REGISTERS EQU (1<<3)
|
---|
| 42 |
|
---|
| 43 |
|
---|
| 44 | ; PDC 20630 specific registers mapped after IDE registers
|
---|
| 45 | PDC20630_INDEX_REGISTER EQU 8 ; 1F8h
|
---|
| 46 | PDC20630_DATA_REGISTER EQU 9 ; 1F9h
|
---|
| 47 |
|
---|
| 48 | ; PDC 20630 registers to access through index and data register
|
---|
| 49 | PDCREG0_TIMING_OF_DEV0_LOW EQU 0 ; Low, high, what timings?
|
---|
| 50 | PDCREG1_TIMING_OF_DEV0_HIGH EQU 1
|
---|
| 51 | PDCREG2_TIMING_OF_DEV1_LOW EQU 2
|
---|
| 52 | PDCREG3_TIMING_OF_DEV1_HIGH EQU 3
|
---|
| 53 | PDCREG7_STATUS EQU 7
|
---|
| 54 |
|
---|
| 55 | FLG_PDCSTATUS_DMA_ERROR EQU (1<<4) ; ?
|
---|
| 56 | FLG_PDCSTATUS_DMA_READ_COMPLETED EQU (1<<1) ; ?
|
---|
| 57 | FLG_PDCSTATUS_DMA_WRITE_COMPLETED EQU (1<<0) ; ?
|
---|
| 58 |
|
---|
| 59 |
|
---|
| 60 | %endif ; PDC20x30_INC
|
---|