From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [PATCH 47/56] microblaze_v2: device.h param.h topology.h Date: Mon, 5 May 2008 00:37:23 +0200 Message-ID: <200805050037.24534.arnd@arndb.de> References: <1209901305-6404-1-git-send-email-monstr@seznam.cz> <5b1319d426b1f55e08402790b4bc16a33ec7c00c.1209897267.git.monstr@monstr.eu> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Return-path: Received: from moutng.kundenserver.de ([212.227.126.188]:64560 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751590AbYEDWhc (ORCPT ); Sun, 4 May 2008 18:37:32 -0400 In-Reply-To: Content-Disposition: inline Sender: linux-arch-owner@vger.kernel.org List-ID: To: monstr@seznam.cz Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, stephen.neuendorffer@xilinx.com, John.Linn@xilinx.com, john.williams@petalogix.com, matthew@wil.cx, will.newton@gmail.com, drepper@redhat.com, microblaze-uclinux@itee.uq.edu.au, grant.likely@secretlab.ca, Michal Simek On Sunday 04 May 2008, monstr@seznam.cz wrote: > +#ifndef _ASM_MICROBLAZE_DEVICE_H > +#define _ASM_MICROBLAZE_DEVICE_H > + > +struct dma_mapping_ops; > +struct device_node; > + > +struct dev_archdata { > + /* Optional pointer to an OF device node */ > + struct device_node *of_node; > + > + /* DMA operations on that device */ > + struct dma_mapping_ops *dma_ops; > + void *dma_data; > + > + /* NUMA node if applicable */ > + int numa_node; > +}; microblaze doesn't have NUMA or dma_mapping_ops, afaict, so it should just be struct dev_archdata { /* Optional pointer to an OF device node */ struct device_node *of_node; }; > --- /dev/null > +++ b/include/asm-microblaze/param.h > @@ -0,0 +1,36 @@ > +/* > + * include/asm-microblaze/param.h > + * > + * This file is subject to the terms and conditions of the GNU General Public > + * License. See the file "COPYING" in the main directory of this archive > + * for more details. > + * > + * Copyright (C) 2006 Atmark Techno, Inc. > + */ > + > +#ifndef _ASM_MICROBLAZE_PARAM_H > +#define _ASM_MICROBLAZE_PARAM_H > + > +#ifdef __KERNEL__ > +# define HZ 100 /* internal timer frequency */ > +# define USER_HZ 100 /* for user interfaces in "ticks" */ > +# define CLOCKS_PER_SEC (USER_HZ) /* frequnzy at which times() counts */ > +#endif > + > +#ifndef NGROUPS > +#define NGROUPS 32 > +#endif > + > +#ifndef NOGROUP > +#define NOGROUP (-1) > +#endif > + > +#define EXEC_PAGESIZE 4096 > + > +#ifndef HZ > +#define HZ 100 > +#endif > + > +#define MAXHOSTNAMELEN 64 /* max length of hostname */ > + > +#endif /* _ASM_MICROBLAZE_PARAM_H */ These parameters are so common that they should become asm-generic/param.h. 4kb page size is of course a HW feature, but it's so universal that it's almost a natural constant ;-) > --- /dev/null > +++ b/include/asm-microblaze/topology.h > @@ -0,0 +1,119 @@ > +/* > + * include/asm-microblaze/topology.h please use the existing asm-generic/topology.h here. Arnd <><