[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Netra X1 boot getting closer



Some of this is right but key things are wrong.  The PCI DMA usage in
this driver is fundamentally fsck'd up, and it needs fixing.

The changes approach what needs to be done... but you need to adjust the
skip area in a portable manner, and do other changes to PCI DMA.

> @@ -157,18 +157,28 @@
>  /* Structure/enum declaration ------------------------------- */
>  struct tx_desc {
>         u32 tdes0, tdes1, tdes2, tdes3;
> +#if __sparc_v9__
> +       ulong tx_buf_ptr;
> +       ulong next_tx_desc;
> +#else
>         u32 tx_skb_ptr;
>         u32 tx_buf_ptr;
>         u32 next_tx_desc;
>         u32 reserved;
> +#endif
>  };
>  
>  struct rx_desc {
>         u32 rdes0, rdes1, rdes2, rdes3;
> +#ifdef __sparc_v9__
> +       ulong rx_skb_ptr;
> +       ulong next_rx_desc;
> +#else
>         u32 rx_skb_ptr;
>         u32 rx_buf_ptr;
>         u32 next_rx_desc;
>         u32 reserved;
> +#endif
>  };
>  

-- 
Jeff Garzik      | Andre the Giant has a posse.
Building 1024    |
MandrakeSoft     |



Reply to: