Merge git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6: (96 commits) sh: add support for SMSC Polaris platform sh: fix the HD64461 level-triggered interrupts handling sh: sh-rtc wakeup support sh: sh-rtc invalid time rework sh: sh-rtc carry interrupt rework sh: disallow kexec virtual entry sh: kexec jump: fix for ftrace. sh: kexec: Drop SR.BL bit toggling. sh: add kexec jump support sh: rework kexec segment code sh: simplify kexec vbr code sh: Flush only the needed range when unmapping a VMA. sh: Update debugfs ASID dumping for 16-bit ASID support. sh: tlb-pteaex: Kill off legacy PTEA updates. sh: Support for extended ASIDs on PTEAEX-capable SH-X3 cores. sh: sh7763rdp: Change IRQ number for sh_eth of sh7763rdp sh: espt-giga board support sh: dma: Make G2 DMA configurable. sh: dma: Make PVR2 DMA configurable. sh: Move IRQ multi definition of DMAC to defconfig ...
This commit is contained in:
commit
928a726b0e
133 changed files with 12349 additions and 2205 deletions
|
|
@ -8,33 +8,49 @@ extern struct bus_type maple_bus_type;
|
|||
|
||||
/* Maple Bus command and response codes */
|
||||
enum maple_code {
|
||||
MAPLE_RESPONSE_FILEERR = -5,
|
||||
MAPLE_RESPONSE_AGAIN = -4, /* request should be retransmitted */
|
||||
MAPLE_RESPONSE_BADCMD = -3,
|
||||
MAPLE_RESPONSE_BADFUNC = -2,
|
||||
MAPLE_RESPONSE_NONE = -1, /* unit didn't respond at all */
|
||||
MAPLE_COMMAND_DEVINFO = 1,
|
||||
MAPLE_COMMAND_ALLINFO = 2,
|
||||
MAPLE_COMMAND_RESET = 3,
|
||||
MAPLE_COMMAND_KILL = 4,
|
||||
MAPLE_RESPONSE_DEVINFO = 5,
|
||||
MAPLE_RESPONSE_ALLINFO = 6,
|
||||
MAPLE_RESPONSE_OK = 7,
|
||||
MAPLE_RESPONSE_DATATRF = 8,
|
||||
MAPLE_COMMAND_GETCOND = 9,
|
||||
MAPLE_COMMAND_GETMINFO = 10,
|
||||
MAPLE_COMMAND_BREAD = 11,
|
||||
MAPLE_COMMAND_BWRITE = 12,
|
||||
MAPLE_COMMAND_SETCOND = 14
|
||||
MAPLE_RESPONSE_FILEERR = -5,
|
||||
MAPLE_RESPONSE_AGAIN, /* retransmit */
|
||||
MAPLE_RESPONSE_BADCMD,
|
||||
MAPLE_RESPONSE_BADFUNC,
|
||||
MAPLE_RESPONSE_NONE, /* unit didn't respond*/
|
||||
MAPLE_COMMAND_DEVINFO = 1,
|
||||
MAPLE_COMMAND_ALLINFO,
|
||||
MAPLE_COMMAND_RESET,
|
||||
MAPLE_COMMAND_KILL,
|
||||
MAPLE_RESPONSE_DEVINFO,
|
||||
MAPLE_RESPONSE_ALLINFO,
|
||||
MAPLE_RESPONSE_OK,
|
||||
MAPLE_RESPONSE_DATATRF,
|
||||
MAPLE_COMMAND_GETCOND,
|
||||
MAPLE_COMMAND_GETMINFO,
|
||||
MAPLE_COMMAND_BREAD,
|
||||
MAPLE_COMMAND_BWRITE,
|
||||
MAPLE_COMMAND_BSYNC,
|
||||
MAPLE_COMMAND_SETCOND,
|
||||
MAPLE_COMMAND_MICCONTROL
|
||||
};
|
||||
|
||||
enum maple_file_errors {
|
||||
MAPLE_FILEERR_INVALID_PARTITION = 0x01000000,
|
||||
MAPLE_FILEERR_PHASE_ERROR = 0x02000000,
|
||||
MAPLE_FILEERR_INVALID_BLOCK = 0x04000000,
|
||||
MAPLE_FILEERR_WRITE_ERROR = 0x08000000,
|
||||
MAPLE_FILEERR_INVALID_WRITE_LENGTH = 0x10000000,
|
||||
MAPLE_FILEERR_BAD_CRC = 0x20000000
|
||||
};
|
||||
|
||||
struct maple_buffer {
|
||||
char bufx[0x400];
|
||||
void *buf;
|
||||
};
|
||||
|
||||
struct mapleq {
|
||||
struct list_head list;
|
||||
struct maple_device *dev;
|
||||
void *sendbuf, *recvbuf, *recvbufdcsp;
|
||||
struct maple_buffer *recvbuf;
|
||||
void *sendbuf, *recvbuf_p2;
|
||||
unsigned char length;
|
||||
enum maple_code command;
|
||||
struct mutex mutex;
|
||||
};
|
||||
|
||||
struct maple_devinfo {
|
||||
|
|
@ -52,11 +68,15 @@ struct maple_device {
|
|||
struct maple_driver *driver;
|
||||
struct mapleq *mq;
|
||||
void (*callback) (struct mapleq * mq);
|
||||
void (*fileerr_handler)(struct maple_device *mdev, void *recvbuf);
|
||||
int (*can_unload)(struct maple_device *mdev);
|
||||
unsigned long when, interval, function;
|
||||
struct maple_devinfo devinfo;
|
||||
unsigned char port, unit;
|
||||
char product_name[32];
|
||||
char product_licence[64];
|
||||
atomic_t busy;
|
||||
wait_queue_head_t maple_wait;
|
||||
struct device dev;
|
||||
};
|
||||
|
||||
|
|
@ -72,7 +92,7 @@ void maple_getcond_callback(struct maple_device *dev,
|
|||
int maple_driver_register(struct maple_driver *);
|
||||
void maple_driver_unregister(struct maple_driver *);
|
||||
|
||||
int maple_add_packet_sleeps(struct maple_device *mdev, u32 function,
|
||||
int maple_add_packet(struct maple_device *mdev, u32 function,
|
||||
u32 command, u32 length, void *data);
|
||||
void maple_clear_dev(struct maple_device *mdev);
|
||||
|
||||
|
|
|
|||
13
include/linux/sh_cmt.h
Normal file
13
include/linux/sh_cmt.h
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#ifndef __SH_CMT_H__
|
||||
#define __SH_CMT_H__
|
||||
|
||||
struct sh_cmt_config {
|
||||
char *name;
|
||||
unsigned long channel_offset;
|
||||
int timer_bit;
|
||||
char *clk;
|
||||
unsigned long clockevent_rating;
|
||||
unsigned long clocksource_rating;
|
||||
};
|
||||
|
||||
#endif /* __SH_CMT_H__ */
|
||||
|
|
@ -85,6 +85,7 @@ struct intc_desc symbol __initdata = { \
|
|||
}
|
||||
#endif
|
||||
|
||||
unsigned int intc_evt2irq(unsigned int vector);
|
||||
void __init register_intc_controller(struct intc_desc *desc);
|
||||
int intc_set_priority(unsigned int irq, unsigned int prio);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue