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
d40454d1
Commit
d40454d1
authored
Sep 05, 2002
by
Paul Mackerras
Committed by
Paul Mackerras
Sep 05, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PPC32: update some initializers to the standard format, from Rusty.
parent
535b1d68
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
121 additions
and
121 deletions
+121
-121
arch/ppc/4xx_io/serial_sicc.c
arch/ppc/4xx_io/serial_sicc.c
+15
-15
arch/ppc/8260_io/uart.c
arch/ppc/8260_io/uart.c
+6
-6
arch/ppc/8xx_io/cs4218_tdm.c
arch/ppc/8xx_io/cs4218_tdm.c
+31
-31
arch/ppc/8xx_io/uart.c
arch/ppc/8xx_io/uart.c
+6
-6
arch/ppc/amiga/config.c
arch/ppc/amiga/config.c
+7
-7
arch/ppc/iSeries/LparData.c
arch/ppc/iSeries/LparData.c
+20
-20
arch/ppc/iSeries/rtc.c
arch/ppc/iSeries/rtc.c
+6
-6
arch/ppc/kernel/ppc4xx_serial.c
arch/ppc/kernel/ppc4xx_serial.c
+5
-5
arch/ppc/kernel/ppc_htab.c
arch/ppc/kernel/ppc_htab.c
+3
-3
arch/ppc/kernel/setup.c
arch/ppc/kernel/setup.c
+4
-4
arch/ppc/platforms/apus_setup.c
arch/ppc/platforms/apus_setup.c
+5
-5
arch/ppc/platforms/proc_rtas.c
arch/ppc/platforms/proc_rtas.c
+10
-10
arch/ppc/xmon/start.c
arch/ppc/xmon/start.c
+3
-3
No files found.
arch/ppc/4xx_io/serial_sicc.c
View file @
d40454d1
...
@@ -343,13 +343,13 @@ static void sicc_set_mctrl_null(struct SICC_port *port, u_int mctrl)
...
@@ -343,13 +343,13 @@ static void sicc_set_mctrl_null(struct SICC_port *port, u_int mctrl)
static
struct
SICC_port
sicc_ports
[
SERIAL_SICC_NR
]
=
{
static
struct
SICC_port
sicc_ports
[
SERIAL_SICC_NR
]
=
{
{
{
uart_base:
0
,
.
uart_base
=
0
,
uart_base_phys:
SICC0_IO_BASE
,
.
uart_base_phys
=
SICC0_IO_BASE
,
irqrx:
SICC0_INTRX
,
.
irqrx
=
SICC0_INTRX
,
irqtx:
SICC0_INTTX
,
.
irqtx
=
SICC0_INTTX
,
//
uartclk:
0,
//
.uartclk =
0,
fifosize:
1
,
.
fifosize
=
1
,
set_mctrl:
sicc_set_mctrl_null
,
.
set_mctrl
=
sicc_set_mctrl_null
,
}
}
};
};
...
@@ -2113,16 +2113,16 @@ static int __init siccuart_console_setup(struct console *co, char *options)
...
@@ -2113,16 +2113,16 @@ static int __init siccuart_console_setup(struct console *co, char *options)
static
struct
console
siccuart_cons
=
static
struct
console
siccuart_cons
=
{
{
name:
SERIAL_SICC_NAME
,
.
name
=
SERIAL_SICC_NAME
,
write:
siccuart_console_write
,
.
write
=
siccuart_console_write
,
#ifdef used_and_not_const_char_pointer
#ifdef used_and_not_const_char_pointer
read:
siccuart_console_read
,
.
read
=
siccuart_console_read
,
#endif
#endif
device:
siccuart_console_device
,
.
device
=
siccuart_console_device
,
wait_key:
siccuart_console_wait_key
,
.
wait_key
=
siccuart_console_wait_key
,
setup:
siccuart_console_setup
,
.
setup
=
siccuart_console_setup
,
flags:
CON_PRINTBUFFER
,
.
flags
=
CON_PRINTBUFFER
,
index:
-
1
,
.
index
=
-
1
,
};
};
void
__init
sicc_console_init
(
void
)
void
__init
sicc_console_init
(
void
)
...
...
arch/ppc/8260_io/uart.c
View file @
d40454d1
...
@@ -2463,12 +2463,12 @@ static kdev_t serial_console_device(struct console *c)
...
@@ -2463,12 +2463,12 @@ static kdev_t serial_console_device(struct console *c)
static
struct
console
sercons
=
{
static
struct
console
sercons
=
{
name:
"ttyS"
,
.
name
=
"ttyS"
,
write:
serial_console_write
,
.
write
=
serial_console_write
,
device:
serial_console_device
,
.
device
=
serial_console_device
,
setup:
serial_console_setup
,
.
setup
=
serial_console_setup
,
flags:
CON_PRINTBUFFER
,
.
flags
=
CON_PRINTBUFFER
,
index:
CONFIG_SERIAL_CONSOLE_PORT
,
.
index
=
CONFIG_SERIAL_CONSOLE_PORT
,
};
};
/*
/*
...
...
arch/ppc/8xx_io/cs4218_tdm.c
View file @
d40454d1
...
@@ -1376,7 +1376,7 @@ static void cs_nosound(unsigned long xx)
...
@@ -1376,7 +1376,7 @@ static void cs_nosound(unsigned long xx)
}
}
static
struct
timer_list
beep_timer
=
{
static
struct
timer_list
beep_timer
=
{
function:
cs_nosound
.
function
=
cs_nosound
};
};
static
void
cs_mksound
(
unsigned
int
hz
,
unsigned
int
ticks
)
static
void
cs_mksound
(
unsigned
int
hz
,
unsigned
int
ticks
)
...
@@ -1468,21 +1468,21 @@ static void CS_release(void)
...
@@ -1468,21 +1468,21 @@ static void CS_release(void)
}
}
static
MACHINE
mach_cs4218
=
{
static
MACHINE
mach_cs4218
=
{
name:
"HIOX CS4218"
,
.
name
=
"HIOX CS4218"
,
name2:
"Built-in Sound"
,
.
name2
=
"Built-in Sound"
,
open:
CS_open
,
.
open
=
CS_open
,
release:
CS_release
,
.
release
=
CS_release
,
dma_alloc:
CS_Alloc
,
.
dma_alloc
=
CS_Alloc
,
dma_free:
CS_Free
,
.
dma_free
=
CS_Free
,
irqinit:
CS_IrqInit
,
.
irqinit
=
CS_IrqInit
,
#ifdef MODULE
#ifdef MODULE
irqcleanup:
CS_IrqCleanup
,
.
irqcleanup
=
CS_IrqCleanup
,
#endif
/* MODULE */
#endif
/* MODULE */
init:
CS_Init
,
.
init
=
CS_Init
,
silence:
CS_Silence
,
.
silence
=
CS_Silence
,
setFormat:
CS_SetFormat
,
.
setFormat
=
CS_SetFormat
,
setVolume:
CS_SetVolume
,
.
setVolume
=
CS_SetVolume
,
play:
CS_Play
.
play
=
CS_Play
};
};
...
@@ -1724,11 +1724,11 @@ static int mixer_ioctl(struct inode *inode, struct file *file, u_int cmd,
...
@@ -1724,11 +1724,11 @@ static int mixer_ioctl(struct inode *inode, struct file *file, u_int cmd,
static
struct
file_operations
mixer_fops
=
static
struct
file_operations
mixer_fops
=
{
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
llseek:
sound_lseek
,
.
llseek
=
sound_lseek
,
ioctl:
mixer_ioctl
,
.
ioctl
=
mixer_ioctl
,
open:
mixer_open
,
.
open
=
mixer_open
,
release:
mixer_release
,
.
release
=
mixer_release
,
};
};
...
@@ -2314,13 +2314,13 @@ static int sq_ioctl(struct inode *inode, struct file *file, u_int cmd,
...
@@ -2314,13 +2314,13 @@ static int sq_ioctl(struct inode *inode, struct file *file, u_int cmd,
static
struct
file_operations
sq_fops
=
static
struct
file_operations
sq_fops
=
{
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
llseek:
sound_lseek
,
.
llseek
=
sound_lseek
,
read:
sq_read
,
/* sq_read */
.
read
=
sq_read
,
/* sq_read */
write:
sq_write
,
.
write
=
sq_write
,
ioctl:
sq_ioctl
,
.
ioctl
=
sq_ioctl
,
open:
sq_open
,
.
open
=
sq_open
,
release:
sq_release
,
.
release
=
sq_release
,
};
};
...
@@ -2451,11 +2451,11 @@ static ssize_t state_read(struct file *file, char *buf, size_t count,
...
@@ -2451,11 +2451,11 @@ static ssize_t state_read(struct file *file, char *buf, size_t count,
static
struct
file_operations
state_fops
=
static
struct
file_operations
state_fops
=
{
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
llseek:
sound_lseek
,
.
llseek
=
sound_lseek
,
read:
state_read
,
.
read
=
state_read
,
open:
state_open
,
.
open
=
state_open
,
release:
state_release
,
.
release
=
state_release
,
};
};
...
...
arch/ppc/8xx_io/uart.c
View file @
d40454d1
...
@@ -224,12 +224,12 @@ typedef struct serial_info {
...
@@ -224,12 +224,12 @@ typedef struct serial_info {
}
ser_info_t
;
}
ser_info_t
;
static
struct
console
sercons
=
{
static
struct
console
sercons
=
{
name:
"ttyS"
,
.
name
=
"ttyS"
,
write:
serial_console_write
,
.
write
=
serial_console_write
,
device:
serial_console_device
,
.
device
=
serial_console_device
,
setup:
serial_console_setup
,
.
setup
=
serial_console_setup
,
flags:
CON_PRINTBUFFER
,
.
flags
=
CON_PRINTBUFFER
,
index:
CONFIG_SERIAL_CONSOLE_PORT
,
.
index
=
CONFIG_SERIAL_CONSOLE_PORT
,
};
};
static
void
change_speed
(
ser_info_t
*
info
);
static
void
change_speed
(
ser_info_t
*
info
);
...
...
arch/ppc/amiga/config.c
View file @
d40454d1
...
@@ -109,9 +109,9 @@ static void amiga_heartbeat(int on);
...
@@ -109,9 +109,9 @@ static void amiga_heartbeat(int on);
#endif
#endif
static
struct
console
amiga_console_driver
=
{
static
struct
console
amiga_console_driver
=
{
name:
"debug"
,
.
name
=
"debug"
,
flags:
CON_PRINTBUFFER
,
.
flags
=
CON_PRINTBUFFER
,
index:
-
1
,
.
index
=
-
1
,
};
};
...
@@ -123,10 +123,10 @@ static struct {
...
@@ -123,10 +123,10 @@ static struct {
struct
resource
_ciab
,
_ciaa
,
_custom
,
_kickstart
;
struct
resource
_ciab
,
_ciaa
,
_custom
,
_kickstart
;
}
mb_resources
=
{
}
mb_resources
=
{
// { "Ranger Memory", 0x00c00000, 0x00c7ffff },
// { "Ranger Memory", 0x00c00000, 0x00c7ffff },
_ciab:
{
"CIA B"
,
0x00bfd000
,
0x00bfdfff
},
.
_ciab
=
{
"CIA B"
,
0x00bfd000
,
0x00bfdfff
},
_ciaa:
{
"CIA A"
,
0x00bfe000
,
0x00bfefff
},
.
_ciaa
=
{
"CIA A"
,
0x00bfe000
,
0x00bfefff
},
_custom:
{
"Custom I/O"
,
0x00dff000
,
0x00dfffff
},
.
_custom
=
{
"Custom I/O"
,
0x00dff000
,
0x00dfffff
},
_kickstart:
{
"Kickstart ROM"
,
0x00f80000
,
0x00ffffff
}
.
_kickstart
=
{
"Kickstart ROM"
,
0x00f80000
,
0x00ffffff
}
};
};
static
struct
resource
rtc_resource
=
{
static
struct
resource
rtc_resource
=
{
...
...
arch/ppc/iSeries/LparData.c
View file @
d40454d1
...
@@ -59,21 +59,21 @@ unsigned maxPacas = maxProcessors * 2;
...
@@ -59,21 +59,21 @@ unsigned maxPacas = maxProcessors * 2;
// 8192 indicates to map 8192 pages (32 MB) of the load area.
// 8192 indicates to map 8192 pages (32 MB) of the load area.
struct
LparMap
xLparMap
=
{
struct
LparMap
xLparMap
=
{
xNumberEsids:
4
,
// Number ESID/VSID pairs
.
xNumberEsids
=
4
,
// Number ESID/VSID pairs
xNumberRanges:
1
,
// Number of memory ranges
.
xNumberRanges
=
1
,
// Number of memory ranges
xSegmentTableOffs:
0
,
// Segment Table Page (unused)
.
xSegmentTableOffs
=
0
,
// Segment Table Page (unused)
xKernelEsidC:
0xC
,
// ESID to map
.
xKernelEsidC
=
0xC
,
// ESID to map
xKernelVsidC:
0xCCC
,
// VSID to map
.
xKernelVsidC
=
0xCCC
,
// VSID to map
xKernelEsidD:
0xD
,
// ESID to map
.
xKernelEsidD
=
0xD
,
// ESID to map
xKernelVsidD:
0xDDD
,
// VSID to map
.
xKernelVsidD
=
0xDDD
,
// VSID to map
xKernelEsidE:
0xE
,
// ESID to map
.
xKernelEsidE
=
0xE
,
// ESID to map
xKernelVsidE:
0xEEE
,
// VSID to map
.
xKernelVsidE
=
0xEEE
,
// VSID to map
xKernelEsidF:
0xF
,
// ESID to map
.
xKernelEsidF
=
0xF
,
// ESID to map
xKernelVsidF:
0xFFF
,
// VSID to map
.
xKernelVsidF
=
0xFFF
,
// VSID to map
xPages:
HvPagesToMap
,
// # of pages to map (8192)
.
xPages
=
HvPagesToMap
,
// # of pages to map (8192)
xOffset:
0
,
// Offset into load area
.
xOffset
=
0
,
// Offset into load area
xVPN:
0xCCC0000
// VPN of first mapped page
.
xVPN
=
0xCCC0000
// VPN of first mapped page
};
};
// The Naca has a pointer to the ItVpdAreas. The hypervisor finds
// The Naca has a pointer to the ItVpdAreas. The hypervisor finds
...
@@ -119,11 +119,11 @@ struct ItLpQueue xItLpQueue = {};
...
@@ -119,11 +119,11 @@ struct ItLpQueue xItLpQueue = {};
(lpq), \
(lpq), \
0, 0, {0}, \
0, 0, {0}, \
{
/* LpPaca */
\
{
/* LpPaca */
\
xDesc:
0xd397d781,
/* "LpPa" */
\
.xDesc =
0xd397d781,
/* "LpPa" */
\
xSize:
sizeof(struct ItLpPaca), \
.xSize =
sizeof(struct ItLpPaca), \
xFPRegsInUse:
1, \
.xFPRegsInUse =
1, \
xDynProcStatus:
2, \
.xDynProcStatus =
2, \
xEndOfQuantum:
0xffffffffffffffff \
.xEndOfQuantum =
0xffffffffffffffff \
}, \
}, \
{
/* LpRegSave */
\
{
/* LpRegSave */
\
0xd397d9e2,
/* "LpRS" */
\
0xd397d9e2,
/* "LpRS" */
\
...
@@ -245,7 +245,7 @@ struct ItIplParmsReal xItIplParmsReal = {};
...
@@ -245,7 +245,7 @@ struct ItIplParmsReal xItIplParmsReal = {};
struct
IoHriProcessorVpd
xIoHriProcessorVpd
[
maxProcessors
]
=
{
struct
IoHriProcessorVpd
xIoHriProcessorVpd
[
maxProcessors
]
=
{
{
{
xTimeBaseFreq:
50000000
.
xTimeBaseFreq
=
50000000
}
}
};
};
...
...
arch/ppc/iSeries/rtc.c
View file @
d40454d1
...
@@ -175,12 +175,12 @@ static int rtc_release(struct inode *inode, struct file *file)
...
@@ -175,12 +175,12 @@ static int rtc_release(struct inode *inode, struct file *file)
*/
*/
static
struct
file_operations
rtc_fops
=
{
static
struct
file_operations
rtc_fops
=
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
llseek:
rtc_llseek
,
.
llseek
=
rtc_llseek
,
read:
rtc_read
,
.
read
=
rtc_read
,
ioctl:
rtc_ioctl
,
.
ioctl
=
rtc_ioctl
,
open:
rtc_open
,
.
open
=
rtc_open
,
release:
rtc_release
,
.
release
=
rtc_release
,
};
};
static
struct
miscdevice
rtc_dev
=
static
struct
miscdevice
rtc_dev
=
...
...
arch/ppc/kernel/ppc4xx_serial.c
View file @
d40454d1
...
@@ -166,11 +166,11 @@ ppc405_sercons_read(struct console *co, char *ptr, unsigned nb)
...
@@ -166,11 +166,11 @@ ppc405_sercons_read(struct console *co, char *ptr, unsigned nb)
}
}
static
struct
console
ppc405_sercons
=
{
static
struct
console
ppc405_sercons
=
{
name:
"dbg_cons"
,
.
name
=
"dbg_cons"
,
write:
ppc405_console_write
,
.
write
=
ppc405_console_write
,
setup:
ppc405_console_setup
,
.
setup
=
ppc405_console_setup
,
flags:
CON_PRINTBUFFER
,
.
flags
=
CON_PRINTBUFFER
,
index:
-
1
,
.
index
=
-
1
,
};
};
void
void
...
...
arch/ppc/kernel/ppc_htab.c
View file @
d40454d1
...
@@ -66,9 +66,9 @@ extern unsigned int htab_hash_searches;
...
@@ -66,9 +66,9 @@ extern unsigned int htab_hash_searches;
#define PMC2 954
#define PMC2 954
struct
file_operations
ppc_htab_operations
=
{
struct
file_operations
ppc_htab_operations
=
{
llseek:
ppc_htab_lseek
,
.
llseek
=
ppc_htab_lseek
,
read:
ppc_htab_read
,
.
read
=
ppc_htab_read
,
write:
ppc_htab_write
,
.
write
=
ppc_htab_write
,
};
};
static
char
*
pmc1_lookup
(
unsigned
long
mmcr0
)
static
char
*
pmc1_lookup
(
unsigned
long
mmcr0
)
...
...
arch/ppc/kernel/setup.c
View file @
d40454d1
...
@@ -250,10 +250,10 @@ static void c_stop(struct seq_file *m, void *v)
...
@@ -250,10 +250,10 @@ static void c_stop(struct seq_file *m, void *v)
}
}
struct
seq_operations
cpuinfo_op
=
{
struct
seq_operations
cpuinfo_op
=
{
start:
c_start
,
.
start
=
c_start
,
next:
c_next
,
.
next
=
c_next
,
stop:
c_stop
,
.
stop
=
c_stop
,
show:
show_cpuinfo
,
.
show
=
show_cpuinfo
,
};
};
/*
/*
...
...
arch/ppc/platforms/apus_setup.c
View file @
d40454d1
...
@@ -667,14 +667,14 @@ extern void amiga_enable_irq(unsigned int irq);
...
@@ -667,14 +667,14 @@ extern void amiga_enable_irq(unsigned int irq);
extern
void
amiga_disable_irq
(
unsigned
int
irq
);
extern
void
amiga_disable_irq
(
unsigned
int
irq
);
struct
hw_interrupt_type
amiga_sys_irqctrl
=
{
struct
hw_interrupt_type
amiga_sys_irqctrl
=
{
typename:
"Amiga IPL"
,
.
typename
=
"Amiga IPL"
,
end:
apus_end_irq
,
.
end
=
apus_end_irq
,
};
};
struct
hw_interrupt_type
amiga_irqctrl
=
{
struct
hw_interrupt_type
amiga_irqctrl
=
{
typename:
"Amiga "
,
.
typename
=
"Amiga "
,
enable:
amiga_enable_irq
,
.
enable
=
amiga_enable_irq
,
disable:
amiga_disable_irq
,
.
disable
=
amiga_disable_irq
,
};
};
#define HARDWARE_MAPPED_SIZE (512*1024)
#define HARDWARE_MAPPED_SIZE (512*1024)
...
...
arch/ppc/platforms/proc_rtas.c
View file @
d40454d1
...
@@ -164,26 +164,26 @@ static ssize_t ppc_rtas_tone_volume_read(struct file * file, char * buf,
...
@@ -164,26 +164,26 @@ static ssize_t ppc_rtas_tone_volume_read(struct file * file, char * buf,
size_t
count
,
loff_t
*
ppos
);
size_t
count
,
loff_t
*
ppos
);
struct
file_operations
ppc_rtas_poweron_operations
=
{
struct
file_operations
ppc_rtas_poweron_operations
=
{
read:
ppc_rtas_poweron_read
,
.
read
=
ppc_rtas_poweron_read
,
write:
ppc_rtas_poweron_write
.
write
=
ppc_rtas_poweron_write
};
};
struct
file_operations
ppc_rtas_progress_operations
=
{
struct
file_operations
ppc_rtas_progress_operations
=
{
read:
ppc_rtas_progress_read
,
.
read
=
ppc_rtas_progress_read
,
write:
ppc_rtas_progress_write
.
write
=
ppc_rtas_progress_write
};
};
struct
file_operations
ppc_rtas_clock_operations
=
{
struct
file_operations
ppc_rtas_clock_operations
=
{
read:
ppc_rtas_clock_read
,
.
read
=
ppc_rtas_clock_read
,
write:
ppc_rtas_clock_write
.
write
=
ppc_rtas_clock_write
};
};
struct
file_operations
ppc_rtas_tone_freq_operations
=
{
struct
file_operations
ppc_rtas_tone_freq_operations
=
{
read:
ppc_rtas_tone_freq_read
,
.
read
=
ppc_rtas_tone_freq_read
,
write:
ppc_rtas_tone_freq_write
.
write
=
ppc_rtas_tone_freq_write
};
};
struct
file_operations
ppc_rtas_tone_volume_operations
=
{
struct
file_operations
ppc_rtas_tone_volume_operations
=
{
read:
ppc_rtas_tone_volume_read
,
.
read
=
ppc_rtas_tone_volume_read
,
write:
ppc_rtas_tone_volume_write
.
write
=
ppc_rtas_tone_volume_write
};
};
int
ppc_rtas_find_all_sensors
(
void
);
int
ppc_rtas_find_all_sensors
(
void
);
...
...
arch/ppc/xmon/start.c
View file @
d40454d1
...
@@ -105,9 +105,9 @@ static void sysrq_handle_xmon(int key, struct pt_regs *regs,
...
@@ -105,9 +105,9 @@ static void sysrq_handle_xmon(int key, struct pt_regs *regs,
static
struct
sysrq_key_op
sysrq_xmon_op
=
static
struct
sysrq_key_op
sysrq_xmon_op
=
{
{
handler:
sysrq_handle_xmon
,
.
handler
=
sysrq_handle_xmon
,
help_msg:
"Xmon"
,
.
help_msg
=
"Xmon"
,
action_msg:
"Entering xmon
\n
"
,
.
action_msg
=
"Entering xmon
\n
"
,
};
};
#endif
#endif
...
...
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