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
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
Hide 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)
static
struct
SICC_port
sicc_ports
[
SERIAL_SICC_NR
]
=
{
{
uart_base:
0
,
uart_base_phys:
SICC0_IO_BASE
,
irqrx:
SICC0_INTRX
,
irqtx:
SICC0_INTTX
,
//
uartclk:
0,
fifosize:
1
,
set_mctrl:
sicc_set_mctrl_null
,
.
uart_base
=
0
,
.
uart_base_phys
=
SICC0_IO_BASE
,
.
irqrx
=
SICC0_INTRX
,
.
irqtx
=
SICC0_INTTX
,
//
.uartclk =
0,
.
fifosize
=
1
,
.
set_mctrl
=
sicc_set_mctrl_null
,
}
};
...
...
@@ -2113,16 +2113,16 @@ static int __init siccuart_console_setup(struct console *co, char *options)
static
struct
console
siccuart_cons
=
{
name:
SERIAL_SICC_NAME
,
write:
siccuart_console_write
,
.
name
=
SERIAL_SICC_NAME
,
.
write
=
siccuart_console_write
,
#ifdef used_and_not_const_char_pointer
read:
siccuart_console_read
,
.
read
=
siccuart_console_read
,
#endif
device:
siccuart_console_device
,
wait_key:
siccuart_console_wait_key
,
setup:
siccuart_console_setup
,
flags:
CON_PRINTBUFFER
,
index:
-
1
,
.
device
=
siccuart_console_device
,
.
wait_key
=
siccuart_console_wait_key
,
.
setup
=
siccuart_console_setup
,
.
flags
=
CON_PRINTBUFFER
,
.
index
=
-
1
,
};
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)
static
struct
console
sercons
=
{
name:
"ttyS"
,
write:
serial_console_write
,
device:
serial_console_device
,
setup:
serial_console_setup
,
flags:
CON_PRINTBUFFER
,
index:
CONFIG_SERIAL_CONSOLE_PORT
,
.
name
=
"ttyS"
,
.
write
=
serial_console_write
,
.
device
=
serial_console_device
,
.
setup
=
serial_console_setup
,
.
flags
=
CON_PRINTBUFFER
,
.
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)
}
static
struct
timer_list
beep_timer
=
{
function:
cs_nosound
.
function
=
cs_nosound
};
static
void
cs_mksound
(
unsigned
int
hz
,
unsigned
int
ticks
)
...
...
@@ -1468,21 +1468,21 @@ static void CS_release(void)
}
static
MACHINE
mach_cs4218
=
{
name:
"HIOX CS4218"
,
name2:
"Built-in Sound"
,
open:
CS_open
,
release:
CS_release
,
dma_alloc:
CS_Alloc
,
dma_free:
CS_Free
,
irqinit:
CS_IrqInit
,
.
name
=
"HIOX CS4218"
,
.
name2
=
"Built-in Sound"
,
.
open
=
CS_open
,
.
release
=
CS_release
,
.
dma_alloc
=
CS_Alloc
,
.
dma_free
=
CS_Free
,
.
irqinit
=
CS_IrqInit
,
#ifdef MODULE
irqcleanup:
CS_IrqCleanup
,
.
irqcleanup
=
CS_IrqCleanup
,
#endif
/* MODULE */
init:
CS_Init
,
silence:
CS_Silence
,
setFormat:
CS_SetFormat
,
setVolume:
CS_SetVolume
,
play:
CS_Play
.
init
=
CS_Init
,
.
silence
=
CS_Silence
,
.
setFormat
=
CS_SetFormat
,
.
setVolume
=
CS_SetVolume
,
.
play
=
CS_Play
};
...
...
@@ -1724,11 +1724,11 @@ static int mixer_ioctl(struct inode *inode, struct file *file, u_int cmd,
static
struct
file_operations
mixer_fops
=
{
owner:
THIS_MODULE
,
llseek:
sound_lseek
,
ioctl:
mixer_ioctl
,
open:
mixer_open
,
release:
mixer_release
,
.
owner
=
THIS_MODULE
,
.
llseek
=
sound_lseek
,
.
ioctl
=
mixer_ioctl
,
.
open
=
mixer_open
,
.
release
=
mixer_release
,
};
...
...
@@ -2314,13 +2314,13 @@ static int sq_ioctl(struct inode *inode, struct file *file, u_int cmd,
static
struct
file_operations
sq_fops
=
{
owner:
THIS_MODULE
,
llseek:
sound_lseek
,
read:
sq_read
,
/* sq_read */
write:
sq_write
,
ioctl:
sq_ioctl
,
open:
sq_open
,
release:
sq_release
,
.
owner
=
THIS_MODULE
,
.
llseek
=
sound_lseek
,
.
read
=
sq_read
,
/* sq_read */
.
write
=
sq_write
,
.
ioctl
=
sq_ioctl
,
.
open
=
sq_open
,
.
release
=
sq_release
,
};
...
...
@@ -2451,11 +2451,11 @@ static ssize_t state_read(struct file *file, char *buf, size_t count,
static
struct
file_operations
state_fops
=
{
owner:
THIS_MODULE
,
llseek:
sound_lseek
,
read:
state_read
,
open:
state_open
,
release:
state_release
,
.
owner
=
THIS_MODULE
,
.
llseek
=
sound_lseek
,
.
read
=
state_read
,
.
open
=
state_open
,
.
release
=
state_release
,
};
...
...
arch/ppc/8xx_io/uart.c
View file @
d40454d1
...
...
@@ -224,12 +224,12 @@ typedef struct serial_info {
}
ser_info_t
;
static
struct
console
sercons
=
{
name:
"ttyS"
,
write:
serial_console_write
,
device:
serial_console_device
,
setup:
serial_console_setup
,
flags:
CON_PRINTBUFFER
,
index:
CONFIG_SERIAL_CONSOLE_PORT
,
.
name
=
"ttyS"
,
.
write
=
serial_console_write
,
.
device
=
serial_console_device
,
.
setup
=
serial_console_setup
,
.
flags
=
CON_PRINTBUFFER
,
.
index
=
CONFIG_SERIAL_CONSOLE_PORT
,
};
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);
#endif
static
struct
console
amiga_console_driver
=
{
name:
"debug"
,
flags:
CON_PRINTBUFFER
,
index:
-
1
,
.
name
=
"debug"
,
.
flags
=
CON_PRINTBUFFER
,
.
index
=
-
1
,
};
...
...
@@ -123,10 +123,10 @@ static struct {
struct
resource
_ciab
,
_ciaa
,
_custom
,
_kickstart
;
}
mb_resources
=
{
// { "Ranger Memory", 0x00c00000, 0x00c7ffff },
_ciab:
{
"CIA B"
,
0x00bfd000
,
0x00bfdfff
},
_ciaa:
{
"CIA A"
,
0x00bfe000
,
0x00bfefff
},
_custom:
{
"Custom I/O"
,
0x00dff000
,
0x00dfffff
},
_kickstart:
{
"Kickstart ROM"
,
0x00f80000
,
0x00ffffff
}
.
_ciab
=
{
"CIA B"
,
0x00bfd000
,
0x00bfdfff
},
.
_ciaa
=
{
"CIA A"
,
0x00bfe000
,
0x00bfefff
},
.
_custom
=
{
"Custom I/O"
,
0x00dff000
,
0x00dfffff
},
.
_kickstart
=
{
"Kickstart ROM"
,
0x00f80000
,
0x00ffffff
}
};
static
struct
resource
rtc_resource
=
{
...
...
arch/ppc/iSeries/LparData.c
View file @
d40454d1
...
...
@@ -59,21 +59,21 @@ unsigned maxPacas = maxProcessors * 2;
// 8192 indicates to map 8192 pages (32 MB) of the load area.
struct
LparMap
xLparMap
=
{
xNumberEsids:
4
,
// Number ESID/VSID pairs
xNumberRanges:
1
,
// Number of memory ranges
xSegmentTableOffs:
0
,
// Segment Table Page (unused)
xKernelEsidC:
0xC
,
// ESID to map
xKernelVsidC:
0xCCC
,
// VSID to map
xKernelEsidD:
0xD
,
// ESID to map
xKernelVsidD:
0xDDD
,
// VSID to map
xKernelEsidE:
0xE
,
// ESID to map
xKernelVsidE:
0xEEE
,
// VSID to map
xKernelEsidF:
0xF
,
// ESID to map
xKernelVsidF:
0xFFF
,
// VSID to map
.
xNumberEsids
=
4
,
// Number ESID/VSID pairs
.
xNumberRanges
=
1
,
// Number of memory ranges
.
xSegmentTableOffs
=
0
,
// Segment Table Page (unused)
.
xKernelEsidC
=
0xC
,
// ESID to map
.
xKernelVsidC
=
0xCCC
,
// VSID to map
.
xKernelEsidD
=
0xD
,
// ESID to map
.
xKernelVsidD
=
0xDDD
,
// VSID to map
.
xKernelEsidE
=
0xE
,
// ESID to map
.
xKernelVsidE
=
0xEEE
,
// VSID to map
.
xKernelEsidF
=
0xF
,
// ESID to map
.
xKernelVsidF
=
0xFFF
,
// VSID to map
xPages:
HvPagesToMap
,
// # of pages to map (8192)
xOffset:
0
,
// Offset into load area
xVPN:
0xCCC0000
// VPN of first mapped page
.
xPages
=
HvPagesToMap
,
// # of pages to map (8192)
.
xOffset
=
0
,
// Offset into load area
.
xVPN
=
0xCCC0000
// VPN of first mapped page
};
// The Naca has a pointer to the ItVpdAreas. The hypervisor finds
...
...
@@ -119,11 +119,11 @@ struct ItLpQueue xItLpQueue = {};
(lpq), \
0, 0, {0}, \
{
/* LpPaca */
\
xDesc:
0xd397d781,
/* "LpPa" */
\
xSize:
sizeof(struct ItLpPaca), \
xFPRegsInUse:
1, \
xDynProcStatus:
2, \
xEndOfQuantum:
0xffffffffffffffff \
.xDesc =
0xd397d781,
/* "LpPa" */
\
.xSize =
sizeof(struct ItLpPaca), \
.xFPRegsInUse =
1, \
.xDynProcStatus =
2, \
.xEndOfQuantum =
0xffffffffffffffff \
}, \
{
/* LpRegSave */
\
0xd397d9e2,
/* "LpRS" */
\
...
...
@@ -245,7 +245,7 @@ struct ItIplParmsReal xItIplParmsReal = {};
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)
*/
static
struct
file_operations
rtc_fops
=
{
owner:
THIS_MODULE
,
llseek:
rtc_llseek
,
read:
rtc_read
,
ioctl:
rtc_ioctl
,
open:
rtc_open
,
release:
rtc_release
,
.
owner
=
THIS_MODULE
,
.
llseek
=
rtc_llseek
,
.
read
=
rtc_read
,
.
ioctl
=
rtc_ioctl
,
.
open
=
rtc_open
,
.
release
=
rtc_release
,
};
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)
}
static
struct
console
ppc405_sercons
=
{
name:
"dbg_cons"
,
write:
ppc405_console_write
,
setup:
ppc405_console_setup
,
flags:
CON_PRINTBUFFER
,
index:
-
1
,
.
name
=
"dbg_cons"
,
.
write
=
ppc405_console_write
,
.
setup
=
ppc405_console_setup
,
.
flags
=
CON_PRINTBUFFER
,
.
index
=
-
1
,
};
void
...
...
arch/ppc/kernel/ppc_htab.c
View file @
d40454d1
...
...
@@ -66,9 +66,9 @@ extern unsigned int htab_hash_searches;
#define PMC2 954
struct
file_operations
ppc_htab_operations
=
{
llseek:
ppc_htab_lseek
,
read:
ppc_htab_read
,
write:
ppc_htab_write
,
.
llseek
=
ppc_htab_lseek
,
.
read
=
ppc_htab_read
,
.
write
=
ppc_htab_write
,
};
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)
}
struct
seq_operations
cpuinfo_op
=
{
start:
c_start
,
next:
c_next
,
stop:
c_stop
,
show:
show_cpuinfo
,
.
start
=
c_start
,
.
next
=
c_next
,
.
stop
=
c_stop
,
.
show
=
show_cpuinfo
,
};
/*
...
...
arch/ppc/platforms/apus_setup.c
View file @
d40454d1
...
...
@@ -667,14 +667,14 @@ extern void amiga_enable_irq(unsigned int irq);
extern
void
amiga_disable_irq
(
unsigned
int
irq
);
struct
hw_interrupt_type
amiga_sys_irqctrl
=
{
typename:
"Amiga IPL"
,
end:
apus_end_irq
,
.
typename
=
"Amiga IPL"
,
.
end
=
apus_end_irq
,
};
struct
hw_interrupt_type
amiga_irqctrl
=
{
typename:
"Amiga "
,
enable:
amiga_enable_irq
,
disable:
amiga_disable_irq
,
.
typename
=
"Amiga "
,
.
enable
=
amiga_enable_irq
,
.
disable
=
amiga_disable_irq
,
};
#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,
size_t
count
,
loff_t
*
ppos
);
struct
file_operations
ppc_rtas_poweron_operations
=
{
read:
ppc_rtas_poweron_read
,
write:
ppc_rtas_poweron_write
.
read
=
ppc_rtas_poweron_read
,
.
write
=
ppc_rtas_poweron_write
};
struct
file_operations
ppc_rtas_progress_operations
=
{
read:
ppc_rtas_progress_read
,
write:
ppc_rtas_progress_write
.
read
=
ppc_rtas_progress_read
,
.
write
=
ppc_rtas_progress_write
};
struct
file_operations
ppc_rtas_clock_operations
=
{
read:
ppc_rtas_clock_read
,
write:
ppc_rtas_clock_write
.
read
=
ppc_rtas_clock_read
,
.
write
=
ppc_rtas_clock_write
};
struct
file_operations
ppc_rtas_tone_freq_operations
=
{
read:
ppc_rtas_tone_freq_read
,
write:
ppc_rtas_tone_freq_write
.
read
=
ppc_rtas_tone_freq_read
,
.
write
=
ppc_rtas_tone_freq_write
};
struct
file_operations
ppc_rtas_tone_volume_operations
=
{
read:
ppc_rtas_tone_volume_read
,
write:
ppc_rtas_tone_volume_write
.
read
=
ppc_rtas_tone_volume_read
,
.
write
=
ppc_rtas_tone_volume_write
};
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,
static
struct
sysrq_key_op
sysrq_xmon_op
=
{
handler:
sysrq_handle_xmon
,
help_msg:
"Xmon"
,
action_msg:
"Entering xmon
\n
"
,
.
handler
=
sysrq_handle_xmon
,
.
help_msg
=
"Xmon"
,
.
action_msg
=
"Entering xmon
\n
"
,
};
#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