From: Geert Uytterhoeven <geert@linux-m68k.org>
To: Arnd Bergmann <arnd@arndb.de>
Cc: linux-arch@vger.kernel.org, Michal Simek <monstr@monstr.eu>,
Remis Lima Baima <remis.developer@googlemail.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 05/27] asm-generic: add generic io.h
Date: Mon, 4 May 2009 09:07:23 +0200 [thread overview]
Message-ID: <10f740e80905040007x38dfcdc5i4a7d351e59db71e9@mail.gmail.com> (raw)
In-Reply-To: <19d8a91dbf3456f9eb0b0bb2f92b302b88a1c672.1241105648.git.arnd@arndb.de>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=UTF-8, Size: 2920 bytes --]
On Thu, Nov 6, 2008 at 15:38, Arnd Bergmann <arnd@arndb.de> wrote:> --- /dev/null> +++ b/include/asm-generic/io.h
> +static inline void insb(unsigned long addr, void *buffer, int count)> +{> + Â Â Â if (count) {> + Â Â Â Â Â Â Â u8 *buf = buffer;> + Â Â Â Â Â Â Â do {> + Â Â Â Â Â Â Â Â Â Â Â u8 x = inb(addr);> + Â Â Â Â Â Â Â Â Â Â Â *buf++ = x;> + Â Â Â Â Â Â Â } while (--count);> + Â Â Â }> +}> +> +static inline void insw(unsigned long addr, void *buffer, int count)> +{> + Â Â Â if (count) {> + Â Â Â Â Â Â Â u16 *buf = buffer;> + Â Â Â Â Â Â Â do {> + Â Â Â Â Â Â Â Â Â Â Â u16 x = inw(addr);> + Â Â Â Â Â Â Â Â Â Â Â *buf++ = x;> + Â Â Â Â Â Â Â } while (--count);> + Â Â Â }> +}> +> +static inline void insl(unsigned long addr, void *buffer, int count)> +{> + Â Â Â if (count) {> + Â Â Â Â Â Â Â u32 *buf = buffer;> + Â Â Â Â Â Â Â do {> + Â Â Â Â Â Â Â Â Â Â Â u32 x = inl(addr);> + Â Â Â Â Â Â Â Â Â Â Â *buf++ = x;> + Â Â Â Â Â Â Â } while (--count);> + Â Â Â }> +}> +> +static inline void outsb(unsigned long addr, const void *buffer, int count)> +{> + Â Â Â if (count) {> + Â Â Â Â Â Â Â const u8 *buf = buffer;> + Â Â Â Â Â Â Â do {> + Â Â Â Â Â Â Â Â Â Â Â outb(*buf++, addr);> + Â Â Â Â Â Â Â } while (--count);> + Â Â Â }> +}> +> +static inline void outsw(unsigned long addr, const void *buffer, int count)> +{> + Â Â Â if (count) {> + Â Â Â Â Â Â Â const u16 *buf = buffer;> + Â Â Â Â Â Â Â do {> + Â Â Â Â Â Â Â Â Â Â Â outw(*buf++, addr);> + Â Â Â Â Â Â Â } while (--count);> + Â Â Â }> +}> +> +static inline void outsl(unsigned long addr, const void *buffer, int count)> +{> + Â Â Â if (count) {> + Â Â Â Â Â Â Â const u32 *buf = buffer;> + Â Â Â Â Â Â Â do {> + Â Â Â Â Â Â Â Â Â Â Â outl(*buf++, addr);> + Â Â Â Â Â Â Â } while (--count);> + Â Â Â }> +}
Do we ever call these with count == 0?
> +/*> + * Change "struct page" to physical address.> + */
Which `struct page'?
> +static inline void *__ioremap(unsigned long offset, unsigned long size,> + Â Â Â Â Â Â Â Â Â Â Â Â Â Â unsigned long flags)> +{> + Â Â Â return (void *) offset;> +}> +> +static inline void *ioremap(unsigned long offset, unsigned long size)> +{> + Â Â Â return (void *) offset;> +}
Gr{oetje,eeting}s,
Geert
--Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. Butwhen I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvaldsÿôèº{.nÇ+·®+%Ëÿ±éݶ\x17¥wÿº{.nÇ+·¥{±þG«éÿ{ayº\x1dÊÚë,j\a¢f£¢·hïêÿêçz_è®\x03(éÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?¨èÚ&£ø§~á¶iOæ¬z·vØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?I¥
next prev parent reply other threads:[~2009-05-04 7:07 UTC|newest]
Thread overview: 80+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-30 15:34 [PATCH 00/27] more non-ABI asm-generic headers Arnd Bergmann
2008-11-06 12:08 ` [PATCH 01/27] asm-generic: rename atomic.h to atomic-long.h Arnd Bergmann
2009-04-30 16:06 ` Ingo Molnar
2008-11-06 12:24 ` [PATCH 03/27] asm-generic: make pci.h usable directly Arnd Bergmann
2008-11-06 13:16 ` [PATCH 04/27] asm-generic: add legacy I/O header files Arnd Bergmann
[not found] ` <c1a198be0904302309w4154f97dqddd0b2df1924a821@mail.gmail.com>
2009-05-01 12:22 ` Arnd Bergmann
2009-05-01 12:25 ` Michal Simek
2009-05-01 12:37 ` Russell King
2009-05-01 12:53 ` Arnd Bergmann
2009-05-01 13:14 ` Alan Cox
2009-05-01 13:20 ` Arnd Bergmann
2009-05-01 13:40 ` Alan Cox
2009-05-01 13:09 ` Alan Cox
2009-05-01 13:29 ` Arnd Bergmann
2009-05-01 13:44 ` Alan Cox
2009-05-01 13:56 ` Arnd Bergmann
2009-05-01 14:03 ` Alan Cox
2009-05-01 14:07 ` Arnd Bergmann
2009-05-01 12:36 ` Russell King
2008-11-06 13:38 ` [PATCH 05/27] asm-generic: add generic io.h Arnd Bergmann
2009-05-04 7:07 ` Geert Uytterhoeven [this message]
2009-05-04 10:48 ` Arnd Bergmann
2008-11-06 13:40 ` [PATCH 07/27] asm-generic: add minimal cache description Arnd Bergmann
[not found] ` <c1a198be0904302303h73c5168fi73f8dc24dc677965@mail.gmail.com>
2009-05-01 12:27 ` Arnd Bergmann
2009-05-01 12:52 ` Michal Simek
2008-11-06 15:10 ` [PATCH 09/27] asm-generic: add generic NOMMU versions of some headers Arnd Bergmann
2008-11-06 15:26 ` [PATCH 10/27] asm-generic: rename page.h to getorder.h Arnd Bergmann
2008-11-06 15:31 ` [PATCH 12/27] asm-generic: add a NOMMU uaccess.h Arnd Bergmann
2009-05-01 10:07 ` Michal Simek
2009-05-01 10:22 ` Russell King
[not found] ` <c1a198be0904302337x714621d8xc4685a634c5cf222@mail.gmail.com>
2009-05-01 12:36 ` Arnd Bergmann
2009-05-01 12:38 ` Michal Simek
2009-05-01 13:13 ` [PATCH V3] asm-generic: add a generic uaccess.h Arnd Bergmann
2009-05-01 13:47 ` Michal Simek
2009-05-01 14:06 ` Arnd Bergmann
2009-05-01 14:11 ` Michal Simek
2009-05-04 6:07 ` Michal Simek
2009-05-04 10:32 ` Arnd Bergmann
2009-05-04 7:24 ` [PATCH 12/27] asm-generic: add a NOMMU uaccess.h Geert Uytterhoeven
2008-11-07 20:43 ` [PATCH 14/27] asm-generic: make bitops.h usable Arnd Bergmann
2008-11-08 10:37 ` [PATCH 15/27] asm-generic: Add missing generic tlb_flush definition Arnd Bergmann
2009-03-31 13:30 ` [PATCH 17/27] add generic lib/checksum.c Arnd Bergmann
2009-04-30 22:35 ` Jan-Benedict Glaw
2009-05-01 9:14 ` Arnd Bergmann
2009-05-01 9:20 ` Russell King
2009-05-01 9:23 ` Michal Simek
2009-05-01 9:35 ` Arnd Bergmann
2009-05-01 9:37 ` Michal Simek
2009-04-01 12:35 ` [PATCH 19/27] microblaze: make syscall_table implementation generic Arnd Bergmann
2009-04-14 13:12 ` [PATCH 20/27] microblaze: use the generic lib/checksum.c Remis Lima Baima
2009-04-15 13:00 ` [PATCH 23/27] microblaze: convert all simple headers to use asm-generic Remis Lima Baima
2009-04-15 15:28 ` [PATCH 22/27] microblaze: don't include asm/mmu.h in hw_exception_handler Arnd Bergmann
2009-04-20 11:53 ` [PATCH 25/27] microblaze: use generic uaccess.h Remis Lima Baima
2009-04-27 11:04 ` [PATCH 06/27] asm-generic: clean up asm-generic/io.h Remis Lima Baima
2009-04-27 11:10 ` [PATCH 26/27] microblaze: make io.h use asm-generic/io.h Remis Lima Baima
2009-04-27 12:42 ` [PATCH 27/27] microblaze: use generic system.h Remis Lima Baima
2009-04-27 15:18 ` [PATCH 21/27] microblaze: use generic swab.h Arnd Bergmann
2009-04-27 15:34 ` [PATCH 16/27] asm-generic: introduce generic syscalls.h Arnd Bergmann
2009-04-27 15:38 ` [PATCH 24/27] microblaze: use generic dma-mapping.h Arnd Bergmann
2009-04-28 14:15 ` [PATCH 08/27] asm-generic: add generic versions of common headers Arnd Bergmann
2009-04-30 16:41 ` David Miller
2009-04-30 16:49 ` Arnd Bergmann
2009-04-30 16:51 ` David Miller
2009-04-30 17:07 ` Arnd Bergmann
2009-04-30 17:12 ` David Miller
2009-04-30 17:34 ` Arnd Bergmann
2009-04-30 17:39 ` David Miller
2009-04-30 18:01 ` Sam Ravnborg
2009-04-29 13:33 ` [PATCH 13/27] asm-generic: make uaccess.h usable by mmu archs Arnd Bergmann
2009-04-29 14:25 ` [PATCH 18/27] microblaze: use generic syscalls.h Arnd Bergmann
2009-04-29 14:51 ` [PATCH 02/27] asm-generic: add generic atomic.h Arnd Bergmann
2009-04-29 14:55 ` [PATCH 11/27] asm-generic: add generic page.h Arnd Bergmann
2009-05-04 7:11 ` Geert Uytterhoeven
2009-04-30 16:39 ` [PATCH 0/2] use generic headers in x86 Arnd Bergmann
2009-04-30 16:40 ` [PATCH 1/2] x86: two small fixes in termios.h Arnd Bergmann
2009-04-30 16:42 ` [PATCH 2/2] x86: adapt simple headers to use generic headers Arnd Bergmann
2009-05-03 11:17 ` [PATCH 00/27] more non-ABI asm-generic headers Geert Uytterhoeven
2009-05-04 14:32 ` Arnd Bergmann
2009-05-08 14:04 ` Geert Uytterhoeven
2009-05-14 11:59 ` Arnd Bergmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=10f740e80905040007x38dfcdc5i4a7d351e59db71e9@mail.gmail.com \
--to=geert@linux-m68k.org \
--cc=arnd@arndb.de \
--cc=linux-arch@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=monstr@monstr.eu \
--cc=remis.developer@googlemail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®