/[dynamips]/trunk/dev_mpc860.h
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/dev_mpc860.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

upstream/dynamips-0.2.7/dev_mpc860.h revision 10 by dpavlin, Sat Oct 6 16:29:14 2007 UTC upstream/dynamips-0.2.8-RC1/dev_mpc860.h revision 11 by dpavlin, Sat Oct 6 16:33:40 2007 UTC
# Line 17  Line 17 
17  /* Forward declaration for MPC860 private data */  /* Forward declaration for MPC860 private data */
18  struct mpc860_data;  struct mpc860_data;
19    
20    /* SPI callback for TX data */
21    typedef void (*mpc860_spi_tx_callback_t)(struct mpc860_data *d,
22                                             u_char *buffer,u_int len,
23                                             void *user_arg);
24    
25  /* Set IRQ pending status */  /* Set IRQ pending status */
26  void mpc860_set_pending_irq(struct mpc860_data *d,m_uint32_t val);  void mpc860_set_pending_irq(struct mpc860_data *d,m_uint32_t val);
27    
28  /* Clear a pending IRQ */  /* Clear a pending IRQ */
29  void mpc860_clear_pending_irq(struct mpc860_data *d,m_uint32_t val);  void mpc860_clear_pending_irq(struct mpc860_data *d,m_uint32_t val);
30    
31    /* Put a buffer into SPI receive buffers */
32    int mpc860_spi_receive(struct mpc860_data *d,u_char *buffer,u_int len);
33    
34    /* Set SPI TX callback */
35    void mpc860_spi_set_tx_callback(struct mpc860_data *d,
36                                    mpc860_spi_tx_callback_t cbk,
37                                    void *user_arg);
38    
39    /* Set NIO for the specified SCC channel */
40    int mpc860_scc_set_nio(struct mpc860_data *d,u_int scc_chan,netio_desc_t *nio);
41    
42    /* Unset NIO of the specified SCC channel */
43    int mpc860_scc_unset_nio(struct mpc860_data *d,u_int scc_chan);
44    
45    /* Set NIO for the Fast Ethernet Controller */
46    int mpc860_fec_set_nio(struct mpc860_data *d,netio_desc_t *nio);
47    
48    /* Unset NIO of the Fast Ethernet Controller */
49    int mpc860_fec_unset_nio(struct mpc860_data *d);
50    
51  /* Create the MPC860 device */  /* Create the MPC860 device */
52  int dev_mpc860_init(vm_instance_t *vm,char *name,  int dev_mpc860_init(vm_instance_t *vm,char *name,
53                      m_uint64_t paddr,m_uint32_t len);                      m_uint64_t paddr,m_uint32_t len);

Legend:
Removed from v.10  
changed lines
  Added in v.11

  ViewVC Help
Powered by ViewVC 1.1.26