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
29fc4510
Commit
29fc4510
authored
Feb 10, 2004
by
Ben Collins
Browse files
Options
Browse Files
Download
Plain Diff
Merge
http://linux.bkbits.net/linux-2.5
into debian.org:/usr/src/kernel/ieee1394-2.6
parents
524a2ba7
863c0e92
Changes
25
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
130 additions
and
14 deletions
+130
-14
arch/ppc/kernel/pci.c
arch/ppc/kernel/pci.c
+23
-0
arch/ppc64/kernel/pci.c
arch/ppc64/kernel/pci.c
+22
-0
drivers/cdrom/cdrom.c
drivers/cdrom/cdrom.c
+4
-4
drivers/md/dm.c
drivers/md/dm.c
+1
-1
drivers/pci/pci-sysfs.c
drivers/pci/pci-sysfs.c
+3
-0
drivers/scsi/sr.c
drivers/scsi/sr.c
+1
-2
drivers/video/console/fbcon.c
drivers/video/console/fbcon.c
+8
-4
include/asm-alpha/pci.h
include/asm-alpha/pci.h
+4
-0
include/asm-arm/pci.h
include/asm-arm/pci.h
+4
-0
include/asm-h8300/pci.h
include/asm-h8300/pci.h
+4
-0
include/asm-i386/pci.h
include/asm-i386/pci.h
+5
-0
include/asm-ia64/pci.h
include/asm-ia64/pci.h
+4
-0
include/asm-m68k/pci.h
include/asm-m68k/pci.h
+4
-0
include/asm-m68knommu/pci.h
include/asm-m68knommu/pci.h
+4
-0
include/asm-mips/pci.h
include/asm-mips/pci.h
+4
-0
include/asm-parisc/pci.h
include/asm-parisc/pci.h
+4
-0
include/asm-ppc/pci.h
include/asm-ppc/pci.h
+2
-0
include/asm-ppc64/pci.h
include/asm-ppc64/pci.h
+2
-0
include/asm-sh/pci.h
include/asm-sh/pci.h
+4
-0
include/asm-sparc/pci.h
include/asm-sparc/pci.h
+4
-0
include/asm-sparc64/pci.h
include/asm-sparc64/pci.h
+4
-0
include/asm-v850/pci.h
include/asm-v850/pci.h
+4
-0
include/asm-x86_64/pci.h
include/asm-x86_64/pci.h
+4
-0
include/linux/compiler.h
include/linux/compiler.h
+4
-0
include/linux/ide.h
include/linux/ide.h
+3
-3
No files found.
arch/ppc/kernel/pci.c
View file @
29fc4510
...
...
@@ -1022,8 +1022,31 @@ pci_create_OF_bus_map(void)
prom_add_property
(
find_path_device
(
"/"
),
of_prop
);
}
}
static
ssize_t
pci_show_devspec
(
struct
device
*
dev
,
char
*
buf
)
{
struct
pci_dev
*
pdev
;
struct
device_node
*
np
;
pdev
=
to_pci_dev
(
dev
);
np
=
pci_device_to_OF_node
(
pdev
);
if
(
np
==
NULL
||
np
->
full_name
==
NULL
)
return
0
;
return
sprintf
(
buf
,
"%s"
,
np
->
full_name
);
}
static
DEVICE_ATTR
(
devspec
,
S_IRUGO
,
pci_show_devspec
,
NULL
);
#endif
/* CONFIG_PPC_OF */
/* Add sysfs properties */
void
pcibios_add_platform_entries
(
struct
pci_dev
*
dev
)
{
#ifdef CONFIG_PPC_OF
device_create_file
(
&
pdev
->
dev
,
&
dev_attr_devspec
);
#endif
/* CONFIG_PPC_OF */
}
#ifdef CONFIG_PPC_PMAC
/*
* This set of routines checks for PCI<->PCI bridges that have closed
...
...
arch/ppc64/kernel/pci.c
View file @
29fc4510
...
...
@@ -540,3 +540,25 @@ int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma,
return
ret
;
}
#ifdef CONFIG_PPC_PSERIES
static
ssize_t
pci_show_devspec
(
struct
device
*
dev
,
char
*
buf
)
{
struct
pci_dev
*
pdev
;
struct
device_node
*
np
;
pdev
=
to_pci_dev
(
dev
);
np
=
pci_device_to_OF_node
(
pdev
);
if
(
np
==
NULL
||
np
->
full_name
==
NULL
)
return
0
;
return
sprintf
(
buf
,
"%s"
,
np
->
full_name
);
}
static
DEVICE_ATTR
(
devspec
,
S_IRUGO
,
pci_show_devspec
,
NULL
);
#endif
/* CONFIG_PPC_PSERIES */
void
pcibios_add_platform_entries
(
struct
pci_dev
*
pdev
)
{
#ifdef CONFIG_PPC_PSERIES
device_create_file
(
&
pdev
->
dev
,
&
dev_attr_devspec
);
#endif
/* CONFIG_PPC_PSERIES */
}
drivers/cdrom/cdrom.c
View file @
29fc4510
...
...
@@ -2766,13 +2766,13 @@ int cdrom_sysctl_info(ctl_table *ctl, int write, struct file * filp,
for
(
cdi
=
topCdromPtr
;
cdi
!=
NULL
;
cdi
=
cdi
->
next
)
pos
+=
sprintf
(
info
+
pos
,
"
\t
%d"
,
CDROM_CAN
(
CDC_DVD_RAM
)
!=
0
);
pos
+=
sprintf
(
info
+
pos
,
"
\n
Can read MRW:"
);
pos
+=
sprintf
(
info
+
pos
,
"
\n
Can read MRW:
\t
"
);
for
(
cdi
=
topCdromPtr
;
cdi
!=
NULL
;
cdi
=
cdi
->
next
)
pos
+=
sprintf
(
info
+
pos
,
"
\t
\t
%d"
,
CDROM_CAN
(
CDC_MRW
)
!=
0
);
pos
+=
sprintf
(
info
+
pos
,
"
\t
%d"
,
CDROM_CAN
(
CDC_MRW
)
!=
0
);
pos
+=
sprintf
(
info
+
pos
,
"
\n
Can write MRW:"
);
pos
+=
sprintf
(
info
+
pos
,
"
\n
Can write MRW:
\t
"
);
for
(
cdi
=
topCdromPtr
;
cdi
!=
NULL
;
cdi
=
cdi
->
next
)
pos
+=
sprintf
(
info
+
pos
,
"
\t
\t
%d"
,
CDROM_CAN
(
CDC_MRW_W
)
!=
0
);
pos
+=
sprintf
(
info
+
pos
,
"
\t
%d"
,
CDROM_CAN
(
CDC_MRW_W
)
!=
0
);
strcpy
(
info
+
pos
,
"
\n\n
"
);
...
...
drivers/md/dm.c
View file @
29fc4510
...
...
@@ -674,7 +674,7 @@ static void __set_size(struct gendisk *disk, sector_t size)
bdev
=
bdget_disk
(
disk
,
0
);
if
(
bdev
)
{
down
(
&
bdev
->
bd_inode
->
i_sem
);
i_size_write
(
bdev
->
bd_inode
,
size
<<
SECTOR_SHIFT
);
i_size_write
(
bdev
->
bd_inode
,
(
loff_t
)
size
<<
SECTOR_SHIFT
);
up
(
&
bdev
->
bd_inode
->
i_sem
);
bdput
(
bdev
);
}
...
...
drivers/pci/pci-sysfs.c
View file @
29fc4510
...
...
@@ -180,4 +180,7 @@ void pci_create_sysfs_dev_files (struct pci_dev *pdev)
device_create_file
(
dev
,
&
dev_attr_irq
);
device_create_file
(
dev
,
&
dev_attr_resource
);
sysfs_create_bin_file
(
&
dev
->
kobj
,
&
pci_config_attr
);
/* add platform-specific attributes */
pcibios_add_platform_entries
(
pdev
);
}
drivers/scsi/sr.c
View file @
29fc4510
...
...
@@ -798,10 +798,9 @@ static void get_capabilities(struct scsi_cd *cd)
if
((
buffer
[
n
+
2
]
&
0x8
)
==
0
)
/* not a DVD drive */
cd
->
cdi
.
mask
|=
CDC_DVD
;
if
((
buffer
[
n
+
3
]
&
0x20
)
==
0
)
{
if
((
buffer
[
n
+
3
]
&
0x20
)
==
0
)
/* can't write DVD-RAM media */
cd
->
cdi
.
mask
|=
CDC_DVD_RAM
;
}
else
if
((
buffer
[
n
+
3
]
&
0x10
)
==
0
)
/* can't write DVD-R media */
cd
->
cdi
.
mask
|=
CDC_DVD_R
;
...
...
drivers/video/console/fbcon.c
View file @
29fc4510
...
...
@@ -1826,9 +1826,11 @@ static int fbcon_do_set_font(struct vc_data *vc, struct console_font_op *op,
vc
->
vc_font
.
height
=
h
;
if
(
vc
->
vc_hi_font_mask
&&
cnt
==
256
)
{
vc
->
vc_hi_font_mask
=
0
;
if
(
vc
->
vc_can_do_color
)
if
(
vc
->
vc_can_do_color
)
{
vc
->
vc_complement_mask
>>=
1
;
vc
->
vc_s_complement_mask
>>=
1
;
}
/* ++Edmund: reorder the attribute bits */
if
(
vc
->
vc_can_do_color
)
{
unsigned
short
*
cp
=
...
...
@@ -1847,9 +1849,11 @@ static int fbcon_do_set_font(struct vc_data *vc, struct console_font_op *op,
}
}
else
if
(
!
vc
->
vc_hi_font_mask
&&
cnt
==
512
)
{
vc
->
vc_hi_font_mask
=
0x100
;
if
(
vc
->
vc_can_do_color
)
if
(
vc
->
vc_can_do_color
)
{
vc
->
vc_complement_mask
<<=
1
;
vc
->
vc_s_complement_mask
<<=
1
;
}
/* ++Edmund: reorder the attribute bits */
{
unsigned
short
*
cp
=
...
...
include/asm-alpha/pci.h
View file @
29fc4510
...
...
@@ -208,6 +208,10 @@ static inline int pci_name_bus(char *name, struct pci_bus *bus)
return
0
;
}
static
inline
void
pcibios_add_platform_entries
(
struct
pci_dev
*
dev
)
{
}
#endif
/* __KERNEL__ */
/* Values for the `which' argument to sys_pciconfig_iobase. */
...
...
include/asm-arm/pci.h
View file @
29fc4510
...
...
@@ -186,6 +186,10 @@ extern void
pcibios_resource_to_bus
(
struct
pci_dev
*
dev
,
struct
pci_bus_region
*
region
,
struct
resource
*
res
);
static
inline
void
pcibios_add_platform_entries
(
struct
pci_dev
*
dev
)
{
}
#endif
/* __KERNEL__ */
#endif
include/asm-h8300/pci.h
View file @
29fc4510
...
...
@@ -22,4 +22,8 @@ extern inline void pcibios_penalize_isa_irq(int irq)
#define PCI_DMA_BUS_IS_PHYS (1)
static
inline
void
pcibios_add_platform_entries
(
struct
pci_dev
*
dev
)
{
}
#endif
/* _ASM_H8300_PCI_H */
include/asm-i386/pci.h
View file @
29fc4510
...
...
@@ -89,6 +89,11 @@ pci_dac_dma_sync_single(struct pci_dev *pdev, dma64_addr_t dma_addr, size_t len,
extern
int
pci_mmap_page_range
(
struct
pci_dev
*
dev
,
struct
vm_area_struct
*
vma
,
enum
pci_mmap_state
mmap_state
,
int
write_combine
);
static
inline
void
pcibios_add_platform_entries
(
struct
pci_dev
*
dev
)
{
}
#endif
/* __KERNEL__ */
/* implement the pci_ DMA API in terms of the generic device dma_ one */
...
...
include/asm-ia64/pci.h
View file @
29fc4510
...
...
@@ -112,6 +112,10 @@ static inline int pci_name_bus(char *name, struct pci_bus *bus)
return
0
;
}
static
inline
void
pcibios_add_platform_entries
(
struct
pci_dev
*
dev
)
{
}
/* generic pci stuff */
#include <asm-generic/pci.h>
...
...
include/asm-m68k/pci.h
View file @
29fc4510
...
...
@@ -54,4 +54,8 @@ static inline void pcibios_penalize_isa_irq(int irq)
*/
#define PCI_DMA_BUS_IS_PHYS (1)
static
inline
void
pcibios_add_platform_entries
(
struct
pci_dev
*
dev
)
{
}
#endif
/* _ASM_M68K_PCI_H */
include/asm-m68knommu/pci.h
View file @
29fc4510
...
...
@@ -30,6 +30,10 @@ static inline int pci_dma_supported(struct pci_dev *hwdev, u64 mask)
*/
#define pci_dac_dma_supported(pci_dev, mask) (0)
static
inline
void
pcibios_add_platform_entries
(
struct
pci_dev
*
dev
)
{
}
#endif
/* CONFIG_COMEMPCI */
#endif
/* M68KNOMMU_PCI_H */
include/asm-mips/pci.h
View file @
29fc4510
...
...
@@ -120,6 +120,10 @@ static inline void pci_dac_dma_sync_single(struct pci_dev *pdev,
dma_cache_wback_inv
(
addr
,
len
);
}
static
inline
void
pcibios_add_platform_entries
(
struct
pci_dev
*
dev
)
{
}
#endif
/* __KERNEL__ */
/* implement the pci_ DMA API in terms of the generic device dma_ one */
...
...
include/asm-parisc/pci.h
View file @
29fc4510
...
...
@@ -196,4 +196,8 @@ extern void
pcibios_resource_to_bus
(
struct
pci_dev
*
dev
,
struct
pci_bus_region
*
region
,
struct
resource
*
res
);
static
inline
void
pcibios_add_platform_entries
(
struct
pci_dev
*
dev
)
{
}
#endif
/* __ASM_PARISC_PCI_H */
include/asm-ppc/pci.h
View file @
29fc4510
...
...
@@ -282,6 +282,8 @@ extern void
pcibios_resource_to_bus
(
struct
pci_dev
*
dev
,
struct
pci_bus_region
*
region
,
struct
resource
*
res
);
extern
void
pcibios_add_platform_entries
(
struct
pci_dev
*
dev
);
#endif
/* __KERNEL__ */
#endif
/* __PPC_PCI_H */
include/asm-ppc64/pci.h
View file @
29fc4510
...
...
@@ -152,6 +152,8 @@ pcibios_fixup_device_resources(struct pci_dev *dev, struct pci_bus *bus);
extern
int
pci_read_irq_line
(
struct
pci_dev
*
dev
);
extern
void
pcibios_add_platform_entries
(
struct
pci_dev
*
dev
);
#endif
/* __KERNEL__ */
#endif
/* __PPC64_PCI_H */
include/asm-sh/pci.h
View file @
29fc4510
...
...
@@ -256,6 +256,10 @@ extern void pcibios_fixup_irqs(void);
extern
int
pciauto_assign_resources
(
int
busno
,
struct
pci_channel
*
hose
);
#endif
static
inline
void
pcibios_add_platform_entries
(
struct
pci_dev
*
dev
)
{
}
#endif
/* __KERNEL__ */
/* generic pci stuff */
...
...
include/asm-sparc/pci.h
View file @
29fc4510
...
...
@@ -141,6 +141,10 @@ extern inline int pci_dma_supported(struct pci_dev *hwdev, u64 mask)
#define pci_dac_dma_supported(dev, mask) (0)
static
inline
void
pcibios_add_platform_entries
(
struct
pci_dev
*
dev
)
{
}
#endif
/* __KERNEL__ */
/* generic pci stuff */
...
...
include/asm-sparc64/pci.h
View file @
29fc4510
...
...
@@ -215,6 +215,10 @@ extern void
pcibios_bus_to_resource
(
struct
pci_dev
*
dev
,
struct
resource
*
res
,
struct
pci_bus_region
*
region
);
static
inline
void
pcibios_add_platform_entries
(
struct
pci_dev
*
dev
)
{
}
#endif
/* __KERNEL__ */
#endif
/* __SPARC64_PCI_H */
include/asm-v850/pci.h
View file @
29fc4510
...
...
@@ -76,4 +76,8 @@ extern void
pci_free_consistent
(
struct
pci_dev
*
pdev
,
size_t
size
,
void
*
cpu_addr
,
dma_addr_t
dma_addr
);
static
inline
void
pcibios_add_platform_entries
(
struct
pci_dev
*
dev
)
{
}
#endif
/* __V850_PCI_H__ */
include/asm-x86_64/pci.h
View file @
29fc4510
...
...
@@ -263,6 +263,10 @@ pci_dac_dma_sync_single(struct pci_dev *pdev, dma64_addr_t dma_addr, size_t len,
extern
int
pci_mmap_page_range
(
struct
pci_dev
*
dev
,
struct
vm_area_struct
*
vma
,
enum
pci_mmap_state
mmap_state
,
int
write_combine
);
static
inline
void
pcibios_add_platform_entries
(
struct
pci_dev
*
dev
)
{
}
#endif
/* __KERNEL__ */
/* generic pci stuff */
...
...
include/linux/compiler.h
View file @
29fc4510
...
...
@@ -9,6 +9,8 @@
# define __kernel
#endif
#ifdef __KERNEL__
#ifndef __ASSEMBLY__
#if __GNUC__ > 3
# include <linux/compiler-gcc+.h>
/* catch-all for GCC 4, 5, etc. */
...
...
@@ -106,4 +108,6 @@
(typeof(ptr)) (__ptr + (off)); })
#endif
#endif
/* __KERNEL__ */
#endif
/* __LINUX_COMPILER_H */
include/linux/ide.h
View file @
29fc4510
...
...
@@ -1626,6 +1626,7 @@ extern int __ide_dma_count(ide_drive_t *);
extern
int
__ide_dma_verbose
(
ide_drive_t
*
);
extern
int
__ide_dma_lostirq
(
ide_drive_t
*
);
extern
int
__ide_dma_timeout
(
ide_drive_t
*
);
#endif
/* CONFIG_BLK_DEV_IDEDMA_PCI */
#ifdef CONFIG_BLK_DEV_IDE_TCQ
extern
int
__ide_dma_queued_on
(
ide_drive_t
*
drive
);
...
...
@@ -1634,13 +1635,12 @@ extern ide_startstop_t __ide_dma_queued_read(ide_drive_t *drive);
extern
ide_startstop_t
__ide_dma_queued_write
(
ide_drive_t
*
drive
);
extern
ide_startstop_t
__ide_dma_queued_start
(
ide_drive_t
*
drive
);
#endif
#endif
/* CONFIG_BLK_DEV_IDEDMA */
#
else
#
ifndef CONFIG_BLK_DEV_IDEDMA_PCI
static
inline
void
ide_release_dma
(
ide_hwif_t
*
drive
)
{;}
#endif
#endif
/* CONFIG_BLK_DEV_IDEDMA */
extern
int
ide_hwif_request_regions
(
ide_hwif_t
*
hwif
);
extern
void
ide_hwif_release_regions
(
ide_hwif_t
*
hwif
);
extern
void
ide_unregister
(
unsigned
int
index
);
...
...
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