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
Kirill Smelkov
linux
Commits
038eca1e
Commit
038eca1e
authored
Oct 04, 2003
by
Bartlomiej Zolnierkiewicz
Committed by
Linus Torvalds
Oct 04, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] remove PDC-ADMA placeholders
They do not contain any real code.
parent
a100d9a8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
219 deletions
+0
-219
drivers/ide/pci/Makefile
drivers/ide/pci/Makefile
+0
-1
drivers/ide/pci/pdcadma.c
drivers/ide/pci/pdcadma.c
+0
-162
drivers/ide/pci/pdcadma.h
drivers/ide/pci/pdcadma.h
+0
-56
No files found.
drivers/ide/pci/Makefile
View file @
038eca1e
...
@@ -18,7 +18,6 @@ obj-$(CONFIG_BLK_DEV_NS87415) += ns87415.o
...
@@ -18,7 +18,6 @@ obj-$(CONFIG_BLK_DEV_NS87415) += ns87415.o
obj-$(CONFIG_BLK_DEV_OPTI621)
+=
opti621.o
obj-$(CONFIG_BLK_DEV_OPTI621)
+=
opti621.o
obj-$(CONFIG_BLK_DEV_PDC202XX_OLD)
+=
pdc202xx_old.o
obj-$(CONFIG_BLK_DEV_PDC202XX_OLD)
+=
pdc202xx_old.o
obj-$(CONFIG_BLK_DEV_PDC202XX_NEW)
+=
pdc202xx_new.o
obj-$(CONFIG_BLK_DEV_PDC202XX_NEW)
+=
pdc202xx_new.o
obj-$(CONFIG_BLK_DEV_PDC_ADMA)
+=
pdcadma.o ide-adma.o
obj-$(CONFIG_BLK_DEV_PIIX)
+=
piix.o
obj-$(CONFIG_BLK_DEV_PIIX)
+=
piix.o
obj-$(CONFIG_BLK_DEV_RZ1000)
+=
rz1000.o
obj-$(CONFIG_BLK_DEV_RZ1000)
+=
rz1000.o
obj-$(CONFIG_BLK_DEV_SVWKS)
+=
serverworks.o
obj-$(CONFIG_BLK_DEV_SVWKS)
+=
serverworks.o
...
...
drivers/ide/pci/pdcadma.c
deleted
100644 → 0
View file @
a100d9a8
/*
* linux/drivers/ide/pci/pdcadma.c Version 0.05 Sept 10, 2002
*
* Copyright (C) 1999-2000 Andre Hedrick <andre@linux-ide.org>
* May be copied or modified under the terms of the GNU General Public License
*
*/
#include <linux/config.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/delay.h>
#include <linux/timer.h>
#include <linux/mm.h>
#include <linux/ioport.h>
#include <linux/blkdev.h>
#include <linux/hdreg.h>
#include <linux/interrupt.h>
#include <linux/init.h>
#include <linux/pci.h>
#include <linux/ide.h>
#include <asm/io.h>
#include <asm/irq.h>
#include "pdcadma.h"
#if defined(DISPLAY_PDCADMA_TIMINGS) && defined(CONFIG_PROC_FS)
#include <linux/stat.h>
#include <linux/proc_fs.h>
static
u8
pdcadma_proc
=
0
;
#define PDC_MAX_DEVS 5
static
struct
pci_dev
*
pdc_devs
[
PDC_MAX_DEVS
];
static
int
n_pdc_devs
;
static
int
pdcadma_get_info
(
char
*
buffer
,
char
**
addr
,
off_t
offset
,
int
count
)
{
char
*
p
=
buffer
;
int
i
;
for
(
i
=
0
;
i
<
n_pdc_devs
;
i
++
)
{
struct
pci_dev
*
dev
=
pdc_devs
[
i
];
unsigned
long
bibma
=
pci_resource_start
(
dev
,
4
);
p
+=
sprintf
(
p
,
"
\n
"
"PDC ADMA %04X Chipset.
\n
"
,
dev
->
device
);
p
+=
sprintf
(
p
,
"UDMA
\n
"
);
p
+=
sprintf
(
p
,
"PIO
\n
"
);
}
return
p
-
buffer
;
/* => must be less than 4k! */
}
#endif
/* defined(DISPLAY_PDCADMA_TIMINGS) && defined(CONFIG_PROC_FS) */
/*
* pdcadma_dma functions() initiates/aborts (U)DMA read/write
* operations on a drive.
*/
#if 0
int (*ide_dma_read)(ide_drive_t *drive);
int (*ide_dma_write)(ide_drive_t *drive);
int (*ide_dma_begin)(ide_drive_t *drive);
int (*ide_dma_end)(ide_drive_t *drive);
int (*ide_dma_check)(ide_drive_t *drive);
int (*ide_dma_on)(ide_drive_t *drive);
int (*ide_dma_off)(ide_drive_t *drive);
int (*ide_dma_off_quietly)(ide_drive_t *drive);
int (*ide_dma_test_irq)(ide_drive_t *drive);
int (*ide_dma_host_on)(ide_drive_t *drive);
int (*ide_dma_host_off)(ide_drive_t *drive);
int (*ide_dma_bad_drive)(ide_drive_t *drive);
int (*ide_dma_good_drive)(ide_drive_t *drive);
int (*ide_dma_count)(ide_drive_t *drive);
int (*ide_dma_verbose)(ide_drive_t *drive);
int (*ide_dma_retune)(ide_drive_t *drive);
int (*ide_dma_lostirq)(ide_drive_t *drive);
int (*ide_dma_timeout)(ide_drive_t *drive);
#endif
static
unsigned
int
__init
init_chipset_pdcadma
(
struct
pci_dev
*
dev
,
const
char
*
name
)
{
#if defined(DISPLAY_PDCADMA_TIMINGS) && defined(CONFIG_PROC_FS)
pdc_devs
[
n_pdc_devs
++
]
=
dev
;
if
(
!
pdcadma_proc
)
{
pdcadma_proc
=
1
;
ide_pci_register_host_proc
(
&
pdcadma_procs
[
0
]);
}
#endif
/* DISPLAY_PDCADMA_TIMINGS && CONFIG_PROC_FS */
return
0
;
}
static
void
__init
init_hwif_pdcadma
(
ide_hwif_t
*
hwif
)
{
hwif
->
autodma
=
0
;
hwif
->
dma_base
=
0
;
// hwif->tuneproc = &pdcadma_tune_drive;
// hwif->speedproc = &pdcadma_tune_chipset;
// if (hwif->dma_base) {
// hwif->autodma = 1;
// }
hwif
->
udma_four
=
1
;
// hwif->atapi_dma = 1;
// hwif->ultra_mask = 0x7f;
// hwif->mwdma_mask = 0x07;
// hwif->swdma_mask = 0x07;
}
static
void
__init
init_dma_pdcadma
(
ide_hwif_t
*
hwif
,
unsigned
long
dmabase
)
{
#if 0
ide_setup_dma(hwif, dmabase, 8);
#endif
}
extern
void
ide_setup_pci_device
(
struct
pci_dev
*
,
ide_pci_device_t
*
);
static
int
__devinit
pdcadma_init_one
(
struct
pci_dev
*
dev
,
const
struct
pci_device_id
*
id
)
{
ide_pci_device_t
*
d
=
&
pdcadma_chipsets
[
id
->
driver_data
];
if
(
dev
->
device
!=
d
->
device
)
BUG
();
ide_setup_pci_device
(
dev
,
d
);
MOD_INC_USE_COUNT
;
return
1
;
}
static
struct
pci_device_id
pdcadma_pci_tbl
[]
=
{
{
PCI_VENDOR_ID_PDC
,
PCI_DEVICE_ID_PDC_1841
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
0
},
{
0
,
},
};
static
struct
pci_driver
driver
=
{
.
name
=
"PDCADMA-IDE"
,
.
id_table
=
pdcadma_pci_tbl
,
.
probe
=
pdcadma_init_one
,
};
static
int
pdcadma_ide_init
(
void
)
{
return
ide_pci_register_driver
(
&
driver
);
}
static
void
pdcadma_ide_exit
(
void
)
{
ide_pci_unregister_driver
(
&
driver
);
}
module_init
(
pdcadma_ide_init
);
module_exit
(
pdcadma_ide_exit
);
MODULE_AUTHOR
(
"Andre Hedrick"
);
MODULE_DESCRIPTION
(
"PCI driver module for PDCADMA IDE"
);
MODULE_LICENSE
(
"GPL"
);
drivers/ide/pci/pdcadma.h
deleted
100644 → 0
View file @
a100d9a8
#ifndef PDC_ADMA_H
#define PDC_ADMA_H
#include <linux/config.h>
#include <linux/pci.h>
#include <linux/ide.h>
#undef DISPLAY_PDCADMA_TIMINGS
#if defined(DISPLAY_PDCADMA_TIMINGS) && defined(CONFIG_PROC_FS)
#include <linux/stat.h>
#include <linux/proc_fs.h>
static
u8
pdcadma_proc
;
static
int
pdcadma_get_info
(
char
*
,
char
**
,
off_t
,
int
);
static
ide_pci_host_proc_t
pdcadma_procs
[]
__initdata
=
{
{
.
name
=
"pdcadma"
,
.
set
=
1
,
.
get_info
=
pdcadma_get_info
,
.
parent
=
NULL
,
},
};
#endif
/* defined(DISPLAY_PDCADMA_TIMINGS) && defined(CONFIG_PROC_FS) */
static
void
init_setup_pdcadma
(
struct
pci_dev
*
,
ide_pci_device_t
*
);
static
unsigned
int
init_chipset_pdcadma
(
struct
pci_dev
*
,
const
char
*
);
static
void
init_hwif_pdcadma
(
ide_hwif_t
*
);
static
void
init_dma_pdcadma
(
ide_hwif_t
*
,
unsigned
long
);
static
ide_pci_device_t
pdcadma_chipsets
[]
__devinitdata
=
{
{
/* 0 */
.
vendor
=
PCI_VENDOR_ID_PDC
,
.
device
=
PCI_DEVICE_ID_PDC_1841
,
.
name
=
"PDCADMA"
,
.
init_setup
=
init_setup_pdcadma
,
.
init_chipset
=
init_chipset_pdcadma
,
.
init_iops
=
NULL
,
.
init_hwif
=
init_hwif_pdcadma
,
.
init_dma
=
init_dma_pdcadma
,
.
channels
=
2
,
.
autodma
=
NODMA
,
.
enablebits
=
{{
0x00
,
0x00
,
0x00
},
{
0x00
,
0x00
,
0x00
}},
.
bootable
=
OFF_BOARD
,
.
extra
=
0
,
},{
.
vendor
=
0
,
.
device
=
0
,
.
channels
=
0
,
.
bootable
=
EOL
,
}
};
#endif
/* PDC_ADMA_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