Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 104167
b: refs/heads/master
c: 5e3609f
h: refs/heads/master
i:
  104165: e8192bb
  104163: 5f8c7ee
  104159: 8bd0795
v: v3
  • Loading branch information
Sam Ravnborg authored and David S. Miller committed Jul 18, 2008
1 parent 09d31e6 commit 3399c2d
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 173 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 075ae525327ed789f5b755a8042ee6f3a0e2ab7b
refs/heads/master: 5e3609f60c09f0f15f71f80c6d7933b2c7be71a6
2 changes: 1 addition & 1 deletion trunk/include/asm-sparc/idprom.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* idprom.h: Macros and defines for idprom routines
*
* Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
* Copyright (C) 1995,1996 David S. Miller (davem@caip.rutgers.edu)
*/

#ifndef _SPARC_IDPROM_H
Expand Down
4 changes: 4 additions & 0 deletions trunk/include/asm-sparc/kmap_types.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#ifndef _ASM_KMAP_TYPES_H
#define _ASM_KMAP_TYPES_H

/* Dummy header just to define km_type. None of this
* is actually used on sparc. -DaveM
*/

enum km_type {
KM_BOUNCE_READ,
KM_SKB_SUNRPC_DATA,
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-sparc/spinlock_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#endif

typedef struct {
unsigned char lock;
volatile unsigned char lock;
} raw_spinlock_t;

#define __RAW_SPIN_LOCK_UNLOCKED { 0 }
Expand Down
5 changes: 1 addition & 4 deletions trunk/include/asm-sparc64/hw_irq.h
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#ifndef __ASM_SPARC64_HW_IRQ_H
#define __ASM_SPARC64_HW_IRQ_H

#endif
#include <asm-sparc/hw_irq.h>
26 changes: 1 addition & 25 deletions trunk/include/asm-sparc64/idprom.h
Original file line number Diff line number Diff line change
@@ -1,25 +1 @@
/*
* idprom.h: Macros and defines for idprom routines
*
* Copyright (C) 1996 David S. Miller (davem@caip.rutgers.edu)
*/

#ifndef _SPARC64_IDPROM_H
#define _SPARC64_IDPROM_H

#include <linux/types.h>

struct idprom {
u8 id_format; /* Format identifier (always 0x01) */
u8 id_machtype; /* Machine type */
u8 id_ethaddr[6]; /* Hardware ethernet address */
s32 id_date; /* Date of manufacture */
u32 id_sernum:24; /* Unique serial number */
u8 id_cksum; /* Checksum - xor of the data bytes */
u8 reserved[16];
};

extern struct idprom *idprom;
extern void idprom_init(void);

#endif /* !(_SPARC_IDPROM_H) */
#include <asm-sparc/idprom.h>
26 changes: 1 addition & 25 deletions trunk/include/asm-sparc64/kmap_types.h
Original file line number Diff line number Diff line change
@@ -1,25 +1 @@
#ifndef _ASM_KMAP_TYPES_H
#define _ASM_KMAP_TYPES_H

/* Dummy header just to define km_type. None of this
* is actually used on sparc64. -DaveM
*/

enum km_type {
KM_BOUNCE_READ,
KM_SKB_SUNRPC_DATA,
KM_SKB_DATA_SOFTIRQ,
KM_USER0,
KM_USER1,
KM_BIO_SRC_IRQ,
KM_BIO_DST_IRQ,
KM_PTE0,
KM_PTE1,
KM_IRQ0,
KM_IRQ1,
KM_SOFTIRQ0,
KM_SOFTIRQ1,
KM_TYPE_NR
};

#endif
#include <asm-sparc/kmap_types.h>
7 changes: 1 addition & 6 deletions trunk/include/asm-sparc64/kvm.h
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
#ifndef __LINUX_KVM_SPARC64_H
#define __LINUX_KVM_SPARC64_H

/* sparc64 does not support KVM */

#endif
#include <asm-sparc/kvm.h>
21 changes: 1 addition & 20 deletions trunk/include/asm-sparc64/spinlock_types.h
Original file line number Diff line number Diff line change
@@ -1,20 +1 @@
#ifndef __SPARC64_SPINLOCK_TYPES_H
#define __SPARC64_SPINLOCK_TYPES_H

#ifndef __LINUX_SPINLOCK_TYPES_H
# error "please don't include this file directly"
#endif

typedef struct {
volatile unsigned char lock;
} raw_spinlock_t;

#define __RAW_SPIN_LOCK_UNLOCKED { 0 }

typedef struct {
volatile unsigned int lock;
} raw_rwlock_t;

#define __RAW_RW_LOCK_UNLOCKED { 0 }

#endif
#include <asm-sparc/spinlock_types.h>
81 changes: 1 addition & 80 deletions trunk/include/asm-sparc64/sunbpp.h
Original file line number Diff line number Diff line change
@@ -1,80 +1 @@
/*
* include/asm-sparc64/sunbpp.h
*/

#ifndef _ASM_SPARC64_SUNBPP_H
#define _ASM_SPARC64_SUNBPP_H

struct bpp_regs {
/* DMA registers */
__volatile__ __u32 p_csr; /* DMA Control/Status Register */
__volatile__ __u32 p_addr; /* Address Register */
__volatile__ __u32 p_bcnt; /* Byte Count Register */
__volatile__ __u32 p_tst_csr; /* Test Control/Status (DMA2 only) */
/* Parallel Port registers */
__volatile__ __u16 p_hcr; /* Hardware Configuration Register */
__volatile__ __u16 p_ocr; /* Operation Configuration Register */
__volatile__ __u8 p_dr; /* Parallel Data Register */
__volatile__ __u8 p_tcr; /* Transfer Control Register */
__volatile__ __u8 p_or; /* Output Register */
__volatile__ __u8 p_ir; /* Input Register */
__volatile__ __u16 p_icr; /* Interrupt Control Register */
};

/* P_HCR. Time is in increments of SBus clock. */
#define P_HCR_TEST 0x8000 /* Allows buried counters to be read */
#define P_HCR_DSW 0x7f00 /* Data strobe width (in ticks) */
#define P_HCR_DDS 0x007f /* Data setup before strobe (in ticks) */

/* P_OCR. */
#define P_OCR_MEM_CLR 0x8000
#define P_OCR_DATA_SRC 0x4000 /* ) */
#define P_OCR_DS_DSEL 0x2000 /* ) Bidirectional */
#define P_OCR_BUSY_DSEL 0x1000 /* ) selects */
#define P_OCR_ACK_DSEL 0x0800 /* ) */
#define P_OCR_EN_DIAG 0x0400
#define P_OCR_BUSY_OP 0x0200 /* Busy operation */
#define P_OCR_ACK_OP 0x0100 /* Ack operation */
#define P_OCR_SRST 0x0080 /* Reset state machines. Not selfcleaning. */
#define P_OCR_IDLE 0x0008 /* PP data transfer state machine is idle */
#define P_OCR_V_ILCK 0x0002 /* Versatec faded. Zebra only. */
#define P_OCR_EN_VER 0x0001 /* Enable Versatec (0 - enable). Zebra only. */

/* P_TCR */
#define P_TCR_DIR 0x08
#define P_TCR_BUSY 0x04
#define P_TCR_ACK 0x02
#define P_TCR_DS 0x01 /* Strobe */

/* P_OR */
#define P_OR_V3 0x20 /* ) */
#define P_OR_V2 0x10 /* ) on Zebra only */
#define P_OR_V1 0x08 /* ) */
#define P_OR_INIT 0x04
#define P_OR_AFXN 0x02 /* Auto Feed */
#define P_OR_SLCT_IN 0x01

/* P_IR */
#define P_IR_PE 0x04
#define P_IR_SLCT 0x02
#define P_IR_ERR 0x01

/* P_ICR */
#define P_DS_IRQ 0x8000 /* RW1 */
#define P_ACK_IRQ 0x4000 /* RW1 */
#define P_BUSY_IRQ 0x2000 /* RW1 */
#define P_PE_IRQ 0x1000 /* RW1 */
#define P_SLCT_IRQ 0x0800 /* RW1 */
#define P_ERR_IRQ 0x0400 /* RW1 */
#define P_DS_IRQ_EN 0x0200 /* RW Always on rising edge */
#define P_ACK_IRQ_EN 0x0100 /* RW Always on rising edge */
#define P_BUSY_IRP 0x0080 /* RW 1= rising edge */
#define P_BUSY_IRQ_EN 0x0040 /* RW */
#define P_PE_IRP 0x0020 /* RW 1= rising edge */
#define P_PE_IRQ_EN 0x0010 /* RW */
#define P_SLCT_IRP 0x0008 /* RW 1= rising edge */
#define P_SLCT_IRQ_EN 0x0004 /* RW */
#define P_ERR_IRP 0x0002 /* RW1 1= rising edge */
#define P_ERR_IRQ_EN 0x0001 /* RW */

#endif /* !(_ASM_SPARC64_SUNBPP_H) */
#include <asm-sparc/sunbpp.h>
11 changes: 1 addition & 10 deletions trunk/include/asm-sparc64/unaligned.h
Original file line number Diff line number Diff line change
@@ -1,10 +1 @@
#ifndef _ASM_SPARC64_UNALIGNED_H
#define _ASM_SPARC64_UNALIGNED_H

#include <linux/unaligned/be_struct.h>
#include <linux/unaligned/le_byteshift.h>
#include <linux/unaligned/generic.h>
#define get_unaligned __get_unaligned_be
#define put_unaligned __put_unaligned_be

#endif /* _ASM_SPARC64_UNALIGNED_H */
#include <asm-sparc/unaligned.h>

0 comments on commit 3399c2d

Please sign in to comment.