From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Warren Date: Thu, 01 Nov 2007 13:43:55 -0400 Subject: [U-Boot-Users] [PATCH v2] Add general ULi 526x Ethernet driver support in U-boot In-Reply-To: <1193910575.19316.21.camel@localhost.localdomain> References: <1193910575.19316.21.camel@localhost.localdomain> Message-ID: <472A105B.5030402@qstreams.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Zang Roy-r61911 wrote: > + > +static void allocate_rx_buffer(struct uli526x_board_info *db) > +{ > + int index; > + struct rx_desc *rxptr; > + rxptr = db->first_rx_desc; > + u32 addr; > + > + for (index = 0; index < RX_DESC_CNT; index++) { > + invalidate_dcache_range((uchar *)NetRxPackets[index], > + (uchar *)NetRxPackets[index] + > + RX_ALLOC_SIZE); > MAKEALL yaks on some targets (ppc4xx) that don't define 'invalidate_dcache_range'. Since this is a PCI driver, more work needs to be done to make it cross-platform. regards, Ben