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
2efec015
Commit
2efec015
authored
Sep 11, 2002
by
Jens Axboe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aec62xx update
parent
26af05ea
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
348 additions
and
301 deletions
+348
-301
drivers/ide/pci/aec62xx.c
drivers/ide/pci/aec62xx.c
+168
-301
drivers/ide/pci/aec62xx.h
drivers/ide/pci/aec62xx.h
+180
-0
No files found.
drivers/ide/pci/aec62xx.c
View file @
2efec015
This diff is collapsed.
Click to expand it.
drivers/ide/pci/aec62xx.h
0 → 100644
View file @
2efec015
#ifndef AEC62XX_H
#define AEC62XX_H
#include <linux/config.h>
#include <linux/pci.h>
#include <linux/ide.h>
#define DISPLAY_AEC62XX_TIMINGS
struct
chipset_bus_clock_list_entry
{
byte
xfer_speed
;
byte
chipset_settings
;
byte
ultra_settings
;
};
struct
chipset_bus_clock_list_entry
aec6xxx_33_base
[]
=
{
#ifdef CONFIG_BLK_DEV_IDEDMA
{
XFER_UDMA_6
,
0x31
,
0x07
},
{
XFER_UDMA_5
,
0x31
,
0x06
},
{
XFER_UDMA_4
,
0x31
,
0x05
},
{
XFER_UDMA_3
,
0x31
,
0x04
},
{
XFER_UDMA_2
,
0x31
,
0x03
},
{
XFER_UDMA_1
,
0x31
,
0x02
},
{
XFER_UDMA_0
,
0x31
,
0x01
},
{
XFER_MW_DMA_2
,
0x31
,
0x00
},
{
XFER_MW_DMA_1
,
0x31
,
0x00
},
{
XFER_MW_DMA_0
,
0x0a
,
0x00
},
#endif
/* CONFIG_BLK_DEV_IDEDMA */
{
XFER_PIO_4
,
0x31
,
0x00
},
{
XFER_PIO_3
,
0x33
,
0x00
},
{
XFER_PIO_2
,
0x08
,
0x00
},
{
XFER_PIO_1
,
0x0a
,
0x00
},
{
XFER_PIO_0
,
0x00
,
0x00
},
{
0
,
0x00
,
0x00
}
};
struct
chipset_bus_clock_list_entry
aec6xxx_34_base
[]
=
{
#ifdef CONFIG_BLK_DEV_IDEDMA
{
XFER_UDMA_6
,
0x41
,
0x06
},
{
XFER_UDMA_5
,
0x41
,
0x05
},
{
XFER_UDMA_4
,
0x41
,
0x04
},
{
XFER_UDMA_3
,
0x41
,
0x03
},
{
XFER_UDMA_2
,
0x41
,
0x02
},
{
XFER_UDMA_1
,
0x41
,
0x01
},
{
XFER_UDMA_0
,
0x41
,
0x01
},
{
XFER_MW_DMA_2
,
0x41
,
0x00
},
{
XFER_MW_DMA_1
,
0x42
,
0x00
},
{
XFER_MW_DMA_0
,
0x7a
,
0x00
},
#endif
/* CONFIG_BLK_DEV_IDEDMA */
{
XFER_PIO_4
,
0x41
,
0x00
},
{
XFER_PIO_3
,
0x43
,
0x00
},
{
XFER_PIO_2
,
0x78
,
0x00
},
{
XFER_PIO_1
,
0x7a
,
0x00
},
{
XFER_PIO_0
,
0x70
,
0x00
},
{
0
,
0x00
,
0x00
}
};
#ifndef HIGH_4
#define HIGH_4(H) ((H)=(H>>4))
#endif
#ifndef LOW_4
#define LOW_4(L) ((L)=(L-((L>>4)<<4)))
#endif
#ifndef SPLIT_BYTE
#define SPLIT_BYTE(B,H,L) ((H)=(B>>4), (L)=(B-((B>>4)<<4)))
#endif
#ifndef MAKE_WORD
#define MAKE_WORD(W,HB,LB) ((W)=((HB<<8)+LB))
#endif
#define BUSCLOCK(D) \
((struct chipset_bus_clock_list_entry *) pci_get_drvdata((D)))
#if defined(DISPLAY_AEC62XX_TIMINGS) && defined(CONFIG_PROC_FS)
#include <linux/stat.h>
#include <linux/proc_fs.h>
static
u8
aec62xx_proc
;
static
int
aec62xx_get_info
(
char
*
,
char
**
,
off_t
,
int
);
static
ide_pci_host_proc_t
aec62xx_procs
[]
__initdata
=
{
{
name:
"aec62xx"
,
set:
1
,
get_info:
aec62xx_get_info
,
parent:
NULL
,
},
};
#endif
/* DISPLAY_AEC62XX_TIMINGS && CONFIG_PROC_FS */
static
void
init_setup_aec6x80
(
struct
pci_dev
*
,
ide_pci_device_t
*
);
static
void
init_setup_aec62xx
(
struct
pci_dev
*
,
ide_pci_device_t
*
);
static
unsigned
int
init_chipset_aec62xx
(
struct
pci_dev
*
,
const
char
*
);
static
void
init_hwif_aec62xx
(
ide_hwif_t
*
);
static
void
init_dma_aec62xx
(
ide_hwif_t
*
,
unsigned
long
);
static
ide_pci_device_t
aec62xx_chipsets
[]
__initdata
=
{
{
vendor:
PCI_VENDOR_ID_ARTOP
,
device:
PCI_DEVICE_ID_ARTOP_ATP850UF
,
name:
"AEC6210"
,
init_setup:
init_setup_aec62xx
,
init_chipset:
init_chipset_aec62xx
,
init_iops:
NULL
,
init_hwif:
init_hwif_aec62xx
,
init_dma:
init_dma_aec62xx
,
channels:
2
,
autodma:
AUTODMA
,
enablebits:
{{
0x4a
,
0x02
,
0x02
},
{
0x4a
,
0x04
,
0x04
}},
bootable:
OFF_BOARD
,
extra:
0
,
},{
vendor:
PCI_VENDOR_ID_ARTOP
,
device:
PCI_DEVICE_ID_ARTOP_ATP860
,
name:
"AEC6260"
,
init_setup:
init_setup_aec62xx
,
init_chipset:
init_chipset_aec62xx
,
init_iops:
NULL
,
init_hwif:
init_hwif_aec62xx
,
init_dma:
init_dma_aec62xx
,
channels:
2
,
autodma:
NOAUTODMA
,
enablebits:
{{
0x00
,
0x00
,
0x00
},
{
0x00
,
0x00
,
0x00
}},
bootable:
OFF_BOARD
,
extra:
0
,
},{
vendor:
PCI_VENDOR_ID_ARTOP
,
device:
PCI_DEVICE_ID_ARTOP_ATP860R
,
name:
"AEC6260R"
,
init_setup:
init_setup_aec62xx
,
init_chipset:
init_chipset_aec62xx
,
init_iops:
NULL
,
init_hwif:
init_hwif_aec62xx
,
init_dma:
init_dma_aec62xx
,
channels:
2
,
autodma:
AUTODMA
,
enablebits:
{{
0x4a
,
0x02
,
0x02
},
{
0x4a
,
0x04
,
0x04
}},
bootable:
NEVER_BOARD
,
extra:
0
,
},{
vendor:
PCI_VENDOR_ID_ARTOP
,
device:
PCI_DEVICE_ID_ARTOP_ATP865
,
name:
"AEC6X80"
,
init_setup:
init_setup_aec6x80
,
init_chipset:
init_chipset_aec62xx
,
init_iops:
NULL
,
init_hwif:
init_hwif_aec62xx
,
init_dma:
init_dma_aec62xx
,
channels:
2
,
autodma:
AUTODMA
,
enablebits:
{{
0x00
,
0x00
,
0x00
},
{
0x00
,
0x00
,
0x00
}},
bootable:
OFF_BOARD
,
extra:
0
,
},{
vendor:
PCI_VENDOR_ID_ARTOP
,
device:
PCI_DEVICE_ID_ARTOP_ATP865R
,
name:
"AEC6X80R"
,
init_setup:
init_setup_aec6x80
,
init_chipset:
init_chipset_aec62xx
,
init_iops:
NULL
,
init_hwif:
init_hwif_aec62xx
,
init_dma:
init_dma_aec62xx
,
channels:
2
,
autodma:
AUTODMA
,
enablebits:
{{
0x4a
,
0x02
,
0x02
},
{
0x4a
,
0x04
,
0x04
}},
bootable:
OFF_BOARD
,
extra:
0
,
},{
vendor:
0
,
device:
0
,
channels:
0
,
bootable:
EOL
,
}
};
#endif
/* AEC62XX_H */
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