This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / arch / ppc / 8xx_io / enet.c
index f720d2a..8ddef1c 100644 (file)
 #include <linux/etherdevice.h>
 #include <linux/skbuff.h>
 #include <linux/spinlock.h>
-#include <linux/dma-mapping.h>
-#include <linux/bitops.h>
 
 #include <asm/8xx_immap.h>
 #include <asm/pgtable.h>
 #include <asm/mpc8xx.h>
+#include <asm/bitops.h>
 #include <asm/uaccess.h>
 #include <asm/commproc.h>
 
@@ -582,10 +581,10 @@ static void set_multicast_list(struct net_device *dev)
        
                /* Log any net taps. */
                printk("%s: Promiscuous mode enabled.\n", dev->name);
-               cep->sccp->scc_psmr |= SCC_PSMR_PRO;
+               cep->sccp->scc_pmsr |= SCC_PMSR_PRO;
        } else {
 
-               cep->sccp->scc_psmr &= ~SCC_PSMR_PRO;
+               cep->sccp->scc_pmsr &= ~SCC_PMSR_PRO;
 
                if (dev->flags & IFF_ALLMULTI) {
                        /* Catch all multicast addresses, so set the
@@ -836,8 +835,7 @@ static int __init scc_enet_init(void)
 
                /* Allocate a page.
                */
-               ba = (unsigned char *)dma_alloc_coherent(NULL, PAGE_SIZE,
-                               &mem_addr, GFP_KERNEL);
+               ba = (unsigned char *)consistent_alloc(GFP_KERNEL, PAGE_SIZE, &mem_addr);
                /* BUG: no check for failure */
 
                /* Initialize the BD for every fragment in the page.
@@ -891,7 +889,7 @@ static int __init scc_enet_init(void)
        /* Set processing mode.  Use Ethernet CRC, catch broadcast, and
         * start frame search 22 bit times after RENA.
         */
-       sccp->scc_psmr = (SCC_PSMR_ENCRC | SCC_PSMR_NIB22);
+       sccp->scc_pmsr = (SCC_PMSR_ENCRC | SCC_PMSR_NIB22);
 
        /* It is now OK to enable the Ethernet transmitter.
         * Unfortunately, there are board implementation differences here.