Skip to content

Commit

Permalink
[POWERPC] Consolidate pseries platform header files into pseries.h
Browse files Browse the repository at this point in the history
Following the example of platforms/pasemi, consolidate a couple of
tiny header files in platforms/pseries into pseries.h.

This gives us a convenient place to put things that need to be
available to the platform code, but not public. And hopefully will
help people resist the temptation of sticking externs in C files.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
mpe authored and paulusmack committed Feb 14, 2007
1 parent 944b380 commit 577830b
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 29 deletions.
17 changes: 0 additions & 17 deletions arch/powerpc/platforms/pseries/firmware.h

This file was deleted.

20 changes: 20 additions & 0 deletions arch/powerpc/platforms/pseries/pseries.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Copyright 2006 IBM Corporation.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version.
*/

#ifndef _PSERIES_PSERIES_H
#define _PSERIES_PSERIES_H

extern void __init fw_feature_init(void);

struct pt_regs;

extern int pSeries_system_reset_exception(struct pt_regs *regs);
extern int pSeries_machine_check_exception(struct pt_regs *regs);

#endif /* _PSERIES_PSERIES_H */
2 changes: 1 addition & 1 deletion arch/powerpc/platforms/pseries/ras.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
#include <asm/udbg.h>
#include <asm/firmware.h>

#include "ras.h"
#include "pseries.h"

static unsigned char ras_log_buf[RTAS_ERROR_LOG_MAX];
static DEFINE_SPINLOCK(ras_log_buf_lock);
Expand Down
9 changes: 0 additions & 9 deletions arch/powerpc/platforms/pseries/ras.h

This file was deleted.

4 changes: 2 additions & 2 deletions arch/powerpc/platforms/pseries/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@
#include <asm/i8259.h>
#include <asm/udbg.h>
#include <asm/smp.h>
#include <asm/firmware.h>

#include "plpar_wrappers.h"
#include "ras.h"
#include "firmware.h"
#include "pseries.h"

#ifdef DEBUG
#define DBG(fmt...) udbg_printf(fmt)
Expand Down

0 comments on commit 577830b

Please sign in to comment.