Path: blob/master/arch/arm/mach-ixp4xx/include/mach/npe.h
17782 views
#ifndef __IXP4XX_NPE_H1#define __IXP4XX_NPE_H23#include <linux/kernel.h>45extern const char *npe_names[];67struct npe_regs {8u32 exec_addr, exec_data, exec_status_cmd, exec_count;9u32 action_points[4];10u32 watchpoint_fifo, watch_count;11u32 profile_count;12u32 messaging_status, messaging_control;13u32 mailbox_status, /*messaging_*/ in_out_fifo;14};1516struct npe {17struct resource *mem_res;18struct npe_regs __iomem *regs;19u32 regs_phys;20int id;21int valid;22};232425static inline const char *npe_name(struct npe *npe)26{27return npe_names[npe->id];28}2930int npe_running(struct npe *npe);31int npe_send_message(struct npe *npe, const void *msg, const char *what);32int npe_recv_message(struct npe *npe, void *msg, const char *what);33int npe_send_recv_message(struct npe *npe, void *msg, const char *what);34int npe_load_firmware(struct npe *npe, const char *name, struct device *dev);35struct npe *npe_request(unsigned id);36void npe_release(struct npe *npe);3738#endif /* __IXP4XX_NPE_H */394041