IBMASM: whitespace cleanup
IBMASM: whitespace cleanup Signed-off-by: Dmitry Torokhov <dtor@mail.ru> Cc: Vernon Mauery <vernux@us.ibm.com> Cc: Max Asbock <masbock@us.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
567f3e422a
commit
3110dc7a86
@ -77,7 +77,7 @@ void ibmasm_receive_event(struct service_processor *sp, void *data, unsigned int
|
|||||||
|
|
||||||
static inline int event_available(struct event_buffer *b, struct event_reader *r)
|
static inline int event_available(struct event_buffer *b, struct event_reader *r)
|
||||||
{
|
{
|
||||||
return (r->next_serial_number < b->next_serial_number);
|
return (r->next_serial_number < b->next_serial_number);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -55,22 +55,22 @@
|
|||||||
* For each service processor the following files are created:
|
* For each service processor the following files are created:
|
||||||
*
|
*
|
||||||
* command: execute dot commands
|
* command: execute dot commands
|
||||||
* write: execute a dot command on the service processor
|
* write: execute a dot command on the service processor
|
||||||
* read: return the result of a previously executed dot command
|
* read: return the result of a previously executed dot command
|
||||||
*
|
*
|
||||||
* events: listen for service processor events
|
* events: listen for service processor events
|
||||||
* read: sleep (interruptible) until an event occurs
|
* read: sleep (interruptible) until an event occurs
|
||||||
* write: wakeup sleeping event listener
|
* write: wakeup sleeping event listener
|
||||||
*
|
*
|
||||||
* reverse_heartbeat: send a heartbeat to the service processor
|
* reverse_heartbeat: send a heartbeat to the service processor
|
||||||
* read: sleep (interruptible) until the reverse heartbeat fails
|
* read: sleep (interruptible) until the reverse heartbeat fails
|
||||||
* write: wakeup sleeping heartbeat listener
|
* write: wakeup sleeping heartbeat listener
|
||||||
*
|
*
|
||||||
* remote_video/width
|
* remote_video/width
|
||||||
* remote_video/height
|
* remote_video/height
|
||||||
* remote_video/width: control remote display settings
|
* remote_video/width: control remote display settings
|
||||||
* write: set value
|
* write: set value
|
||||||
* read: read value
|
* read: read value
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <linux/fs.h>
|
#include <linux/fs.h>
|
||||||
@ -155,7 +155,7 @@ static struct inode *ibmasmfs_make_inode(struct super_block *sb, int mode)
|
|||||||
|
|
||||||
static struct dentry *ibmasmfs_create_file (struct super_block *sb,
|
static struct dentry *ibmasmfs_create_file (struct super_block *sb,
|
||||||
struct dentry *parent,
|
struct dentry *parent,
|
||||||
const char *name,
|
const char *name,
|
||||||
const struct file_operations *fops,
|
const struct file_operations *fops,
|
||||||
void *data,
|
void *data,
|
||||||
int mode)
|
int mode)
|
||||||
|
@ -111,7 +111,7 @@ static inline u32 get_mfa_outbound(void __iomem *base_address)
|
|||||||
|
|
||||||
static inline void set_mfa_outbound(void __iomem *base_address, u32 mfa)
|
static inline void set_mfa_outbound(void __iomem *base_address, u32 mfa)
|
||||||
{
|
{
|
||||||
writel(mfa, base_address + OUTBOUND_QUEUE_PORT);
|
writel(mfa, base_address + OUTBOUND_QUEUE_PORT);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline u32 get_mfa_inbound(void __iomem *base_address)
|
static inline u32 get_mfa_inbound(void __iomem *base_address)
|
||||||
@ -126,7 +126,7 @@ static inline u32 get_mfa_inbound(void __iomem *base_address)
|
|||||||
|
|
||||||
static inline void set_mfa_inbound(void __iomem *base_address, u32 mfa)
|
static inline void set_mfa_inbound(void __iomem *base_address, u32 mfa)
|
||||||
{
|
{
|
||||||
writel(mfa, base_address + INBOUND_QUEUE_PORT);
|
writel(mfa, base_address + INBOUND_QUEUE_PORT);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline struct i2o_message *get_i2o_message(void __iomem *base_address, u32 mfa)
|
static inline struct i2o_message *get_i2o_message(void __iomem *base_address, u32 mfa)
|
||||||
|
@ -36,10 +36,10 @@ static struct {
|
|||||||
unsigned char command[3];
|
unsigned char command[3];
|
||||||
} rhb_dot_cmd = {
|
} rhb_dot_cmd = {
|
||||||
.header = {
|
.header = {
|
||||||
.type = sp_read,
|
.type = sp_read,
|
||||||
.command_size = 3,
|
.command_size = 3,
|
||||||
.data_size = 0,
|
.data_size = 0,
|
||||||
.status = 0
|
.status = 0
|
||||||
},
|
},
|
||||||
.command = { 4, 3, 6 }
|
.command = { 4, 3, 6 }
|
||||||
};
|
};
|
||||||
|
@ -85,7 +85,7 @@ struct remote_input {
|
|||||||
unsigned char pad3;
|
unsigned char pad3;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define mouse_addr(sp) (sp->base_address + CONDOR_MOUSE_DATA)
|
#define mouse_addr(sp) (sp->base_address + CONDOR_MOUSE_DATA)
|
||||||
#define display_width(sp) (mouse_addr(sp) + CONDOR_INPUT_DISPLAY_RESX)
|
#define display_width(sp) (mouse_addr(sp) + CONDOR_INPUT_DISPLAY_RESX)
|
||||||
#define display_height(sp) (mouse_addr(sp) + CONDOR_INPUT_DISPLAY_RESY)
|
#define display_height(sp) (mouse_addr(sp) + CONDOR_INPUT_DISPLAY_RESY)
|
||||||
#define display_depth(sp) (mouse_addr(sp) + CONDOR_INPUT_DISPLAY_BITS)
|
#define display_depth(sp) (mouse_addr(sp) + CONDOR_INPUT_DISPLAY_BITS)
|
||||||
@ -93,7 +93,7 @@ struct remote_input {
|
|||||||
#define vnc_status(sp) (mouse_addr(sp) + CONDOR_OUTPUT_VNC_STATUS)
|
#define vnc_status(sp) (mouse_addr(sp) + CONDOR_OUTPUT_VNC_STATUS)
|
||||||
#define isr_control(sp) (mouse_addr(sp) + CONDOR_MOUSE_ISR_CONTROL)
|
#define isr_control(sp) (mouse_addr(sp) + CONDOR_MOUSE_ISR_CONTROL)
|
||||||
|
|
||||||
#define mouse_interrupt_pending(sp) readl(mouse_addr(sp) + CONDOR_MOUSE_ISR_STATUS)
|
#define mouse_interrupt_pending(sp) readl(mouse_addr(sp) + CONDOR_MOUSE_ISR_STATUS)
|
||||||
#define clear_mouse_interrupt(sp) writel(0, mouse_addr(sp) + CONDOR_MOUSE_ISR_STATUS)
|
#define clear_mouse_interrupt(sp) writel(0, mouse_addr(sp) + CONDOR_MOUSE_ISR_STATUS)
|
||||||
#define enable_mouse_interrupts(sp) writel(1, mouse_addr(sp) + CONDOR_MOUSE_ISR_CONTROL)
|
#define enable_mouse_interrupts(sp) writel(1, mouse_addr(sp) + CONDOR_MOUSE_ISR_CONTROL)
|
||||||
#define disable_mouse_interrupts(sp) writel(0, mouse_addr(sp) + CONDOR_MOUSE_ISR_CONTROL)
|
#define disable_mouse_interrupts(sp) writel(0, mouse_addr(sp) + CONDOR_MOUSE_ISR_CONTROL)
|
||||||
|
Loading…
Reference in New Issue
Block a user