Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8d8706e2 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds
Browse files

[PATCH] lindent rio drivers



Run all rio files through indent -kr -i8 -bri0 -l255, as requested by Alan.

rioboot.c and rioinit.c were skipped due to worrisome lindent warnings.

Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent a9415644
Loading
Loading
Loading
Loading
+38 −45
Original line number Diff line number Diff line
@@ -52,8 +52,7 @@ static char *_board_h_sccs_ = "@(#)board.h 1.2";
/*
**	The shape of the Host Control area, at offset 0x7C00, Write Only
*/
struct s_Ctrl
{
struct s_Ctrl {
	BYTE DpCtl;		/* 7C00 */
	BYTE Dp_Unused2_[127];
	BYTE DpIntSet;		/* 7C80 */
@@ -67,8 +66,7 @@ struct s_Ctrl
/*
** The PROM data area on the host (0x7C00), Read Only
*/
struct s_Prom
{
struct s_Prom {
	WORD DpSlxCode[2];
	WORD DpRev;
	WORD Dp_Unused6_;
@@ -83,8 +81,7 @@ struct s_Prom
/*
** Union of the Ctrl and Prom areas
*/
union u_CtrlProm	/* This is the control/PROM area (0x7C00) */
{
union u_CtrlProm {		/* This is the control/PROM area (0x7C00) */
	struct s_Ctrl DpCtrl;
	struct s_Prom DpProm;
};
@@ -92,22 +89,19 @@ union u_CtrlProm /* This is the control/PROM area (0x7C00) */
/*
** The top end of memory!
*/
struct s_ParmMapS		/* Area containing Parm Map Pointer */
{
struct s_ParmMapS {		/* Area containing Parm Map Pointer */
	BYTE Dp_Unused8_[DP_PARMMAP_ADDR];
	WORD DpParmMapAd;
};

struct s_StartUpS
{
struct s_StartUpS {
	BYTE Dp_Unused9_[DP_STARTUP_ADDR];
	BYTE Dp_LongJump[0x4];
	BYTE Dp_Unused10_[2];
	BYTE Dp_ShortJump[0x2];
};

union u_Sram2ParmMap	/* This is the top of memory (0x7E00-0x7FFF) */
{
union u_Sram2ParmMap {		/* This is the top of memory (0x7E00-0x7FFF) */
	BYTE DpSramMem[DP_SRAM2_SIZE];
	struct s_ParmMapS DpParmMapS;
	struct s_StartUpS DpStartUpS;
@@ -116,8 +110,7 @@ union u_Sram2ParmMap /* This is the top of memory (0x7E00-0x7FFF) */
/*
**	This is the DP RAM overlay.
*/
struct DpRam
{
struct DpRam {
	BYTE DpSram1[DP_SRAM1_SIZE];	/* 0000 - 7BFF */
	union u_CtrlProm DpCtrlProm;	/* 7C00 - 7DFF */
	union u_Sram2ParmMap DpSram2ParmMap;	/* 7E00 - 7FFF */
+5 −6
Original line number Diff line number Diff line
@@ -59,4 +59,3 @@ struct BOOT_PKT {
#endif

/*********** end of file ***********/
+4 −5
Original line number Diff line number Diff line
@@ -97,8 +97,7 @@

#define MAX_RATE B2000

struct    baud_rate            /* Tag for baud rates */
{
struct baud_rate {		/* Tag for baud rates */
	/* short    host_rate, *//* As passed by the driver */
	short divisor,		/* The divisor */
	 prescaler;		/* The pre-scaler */
+2 −3
Original line number Diff line number Diff line
@@ -81,4 +81,3 @@ static char *_rio_cmd_h_sccs = "@(#)cmd.h 1.1" ;
#endif

/*********** end of file ***********/
+9 −10
Original line number Diff line number Diff line
@@ -44,8 +44,7 @@ static char *_cmdblk_h_sccs_ = "@(#)cmdblk.h 1.2";
** a rup.
*/

struct CmdBlk
{
struct CmdBlk {
	struct CmdBlk *NextP;	/* Pointer to next command block */
	struct PKT Packet;	/* A packet, to copy to the rup */
	/* The func to call to check if OK */
Loading