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
e4481393
Commit
e4481393
authored
Jul 24, 2002
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc64: Designated initializers from Rusty
parent
b8e13e89
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
63 additions
and
63 deletions
+63
-63
arch/ppc64/kernel/nvram.c
arch/ppc64/kernel/nvram.c
+5
-5
arch/ppc64/kernel/pacaData.c
arch/ppc64/kernel/pacaData.c
+30
-30
arch/ppc64/kernel/rtas-proc.c
arch/ppc64/kernel/rtas-proc.c
+10
-10
arch/ppc64/kernel/rtas.c
arch/ppc64/kernel/rtas.c
+1
-1
arch/ppc64/kernel/rtasd.c
arch/ppc64/kernel/rtasd.c
+4
-4
arch/ppc64/kernel/rtc.c
arch/ppc64/kernel/rtc.c
+6
-6
arch/ppc64/kernel/setup.c
arch/ppc64/kernel/setup.c
+4
-4
arch/ppc64/xmon/start.c
arch/ppc64/xmon/start.c
+3
-3
No files found.
arch/ppc64/kernel/nvram.c
View file @
e4481393
...
@@ -99,11 +99,11 @@ static int nvram_ioctl(struct inode *inode, struct file *file,
...
@@ -99,11 +99,11 @@ static int nvram_ioctl(struct inode *inode, struct file *file,
}
}
struct
file_operations
nvram_fops
=
{
struct
file_operations
nvram_fops
=
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
llseek:
nvram_llseek
,
.
llseek
=
nvram_llseek
,
read:
read_nvram
,
.
read
=
read_nvram
,
write:
write_nvram
,
.
write
=
write_nvram
,
ioctl:
nvram_ioctl
,
.
ioctl
=
nvram_ioctl
,
};
};
static
struct
miscdevice
nvram_dev
=
{
static
struct
miscdevice
nvram_dev
=
{
...
...
arch/ppc64/kernel/pacaData.c
View file @
e4481393
...
@@ -33,33 +33,33 @@ struct naca_struct *naca;
...
@@ -33,33 +33,33 @@ struct naca_struct *naca;
*/
*/
#define PACAINITDATA(number,start,lpq,asrr,asrv) \
#define PACAINITDATA(number,start,lpq,asrr,asrv) \
{ \
{ \
xLpPacaPtr: &paca[number].xLpPaca,
\
.xLpPacaPtr = &paca[number].xLpPaca,
\
xLpRegSavePtr: &paca[number].xRegSav,
\
.xLpRegSavePtr = &paca[number].xRegSav,
\
xPacaIndex: (number),
/* Paca Index */
\
.xPacaIndex = (number),
/* Paca Index */
\
default_decr: 0x00ff0000,
/* Initial Decr */
\
.default_decr = 0x00ff0000,
/* Initial Decr */
\
xStab_data: {
\
.xStab_data = {
\
real: (asrr),
/* Real pointer to segment table */
\
.real = (asrr),
/* Real pointer to segment table */
\
virt: (asrv),
/* Virt pointer to segment table */
\
.virt = (asrv),
/* Virt pointer to segment table */
\
next_round_robin: 1
/* Round robin index */
\
.next_round_robin = 1
/* Round robin index */
\
}, \
}, \
lpQueuePtr: (lpq),
/* &xItLpQueue, */
\
.lpQueuePtr = (lpq),
/* &xItLpQueue, */
\
/* xRtas: {
\
/* .xRtas = {
\
lock: SPIN_LOCK_UNLOCKED
\
.lock = SPIN_LOCK_UNLOCKED
\
}, */
\
}, */
\
xProcStart: (start),
/* Processor start */
\
.xProcStart = (start),
/* Processor start */
\
xLpPaca: {
\
.xLpPaca = {
\
xDesc: 0xd397d781,
/* "LpPa" */
\
.xDesc = 0xd397d781,
/* "LpPa" */
\
xSize: sizeof(struct ItLpPaca),
\
.xSize = sizeof(struct ItLpPaca),
\
xFPRegsInUse: 1,
\
.xFPRegsInUse = 1,
\
xDynProcStatus: 2,
\
.xDynProcStatus = 2,
\
xDecrVal:
0x00ff0000, \
.xDecrVal =
0x00ff0000, \
xEndOfQuantum: 0xffffffffffffffff
\
.xEndOfQuantum = 0xffffffffffffffff
\
}, \
}, \
xRegSav: {
\
.xRegSav = {
\
xDesc: 0xd397d9e2,
/* "LpRS" */
\
.xDesc = 0xd397d9e2,
/* "LpRS" */
\
xSize: sizeof(struct ItLpRegSave)
\
.xSize = sizeof(struct ItLpRegSave)
\
}, \
}, \
exception_sp:
\
.exception_sp =
\
(&paca[number].exception_stack[0]) - EXC_FRAME_SIZE, \
(&paca[number].exception_stack[0]) - EXC_FRAME_SIZE, \
}
}
...
...
arch/ppc64/kernel/rtas-proc.c
View file @
e4481393
...
@@ -162,26 +162,26 @@ static ssize_t ppc_rtas_tone_volume_read(struct file * file, char * buf,
...
@@ -162,26 +162,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/ppc64/kernel/rtas.c
View file @
e4481393
...
@@ -51,7 +51,7 @@ struct flash_block_list_header rtas_firmware_flash_list = {0, 0};
...
@@ -51,7 +51,7 @@ struct flash_block_list_header rtas_firmware_flash_list = {0, 0};
*/
*/
struct
rtas_t
rtas
=
{
struct
rtas_t
rtas
=
{
lock:
SPIN_LOCK_UNLOCKED
.
lock
=
SPIN_LOCK_UNLOCKED
};
};
extern
unsigned
long
reloc_offset
(
void
);
extern
unsigned
long
reloc_offset
(
void
);
...
...
arch/ppc64/kernel/rtasd.c
View file @
e4481393
...
@@ -114,10 +114,10 @@ static unsigned int rtas_log_poll(struct file *file, poll_table * wait)
...
@@ -114,10 +114,10 @@ static unsigned int rtas_log_poll(struct file *file, poll_table * wait)
}
}
struct
file_operations
proc_rtas_log_operations
=
{
struct
file_operations
proc_rtas_log_operations
=
{
read:
rtas_log_read
,
.
read
=
rtas_log_read
,
poll:
rtas_log_poll
,
.
poll
=
rtas_log_poll
,
open:
rtas_log_open
,
.
open
=
rtas_log_open
,
release:
rtas_log_release
,
.
release
=
rtas_log_release
,
};
};
static
void
log_rtas
(
char
*
buf
)
static
void
log_rtas
(
char
*
buf
)
...
...
arch/ppc64/kernel/rtc.c
View file @
e4481393
...
@@ -178,12 +178,12 @@ static int rtc_release(struct inode *inode, struct file *file)
...
@@ -178,12 +178,12 @@ static int rtc_release(struct inode *inode, struct file *file)
* The various file operations we support.
* The various file operations we support.
*/
*/
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/ppc64/kernel/setup.c
View file @
e4481393
...
@@ -353,10 +353,10 @@ static void c_stop(struct seq_file *m, void *v)
...
@@ -353,10 +353,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/ppc64/xmon/start.c
View file @
e4481393
...
@@ -58,9 +58,9 @@ static void sysrq_handle_xmon(int key, struct pt_regs *pt_regs, struct tty_struc
...
@@ -58,9 +58,9 @@ static void sysrq_handle_xmon(int key, struct pt_regs *pt_regs, struct tty_struc
}
}
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
"
,
};
};
void
void
...
...
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