X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Fppc%2F8xx_io%2Fenet.c;h=8ddef1c5cf11dd34bdc3fdce793ed9a7e0bedc34;hb=a9fdee76789476a10f923f9fb3c84993042da3ac;hp=f720d2a4ca6dad9e4a09bda3cb4290a298d1730c;hpb=8d40237c730b8be87c1b80a5d96b9c603fefa829;p=linux-2.6.git diff --git a/arch/ppc/8xx_io/enet.c b/arch/ppc/8xx_io/enet.c index f720d2a4c..8ddef1c5c 100644 --- a/arch/ppc/8xx_io/enet.c +++ b/arch/ppc/8xx_io/enet.c @@ -38,12 +38,11 @@ #include #include #include -#include -#include #include #include #include +#include #include #include @@ -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.