From: Juan Quintela <quintela@mandrakesoft.com>
To: TAKANO Ryousei <takano@os-omicron.org>
Cc: linux-mips@linux-mips.org
Subject: Re: [PATCH][2/2] TANBAC TB0193 (L-Card+)
Date: Mon, 17 Feb 2003 10:21:31 +0100 [thread overview]
Message-ID: <86r8a79s9w.fsf@trasno.mitica> (raw)
In-Reply-To: <20030217133222.13f9adf8.takano@os-omicron.org> (TAKANO Ryousei's message of "Mon, 17 Feb 2003 13:32:22 +0900")
>>>>> "takano" == TAKANO Ryousei <takano@os-omicron.org> writes:
takano> Hi,
takano> This mail attaches tanbac-tb0193-drivers.patch.
a cople of comments:
+static __u32 tb0193_read32(struct map_info *map, unsigned long ofs)
^^^^^
plain uXX instead of __uXX should work on kernel land.
+static struct map_info tb0193_map = {
+ name: "TANBAC TB0193 flash",
+ read8: tb0193_read8,
+ read16: tb0193_read16,
+ read32: tb0193_read32,
+ copy_from: tb0193_copy_from,
+ write8: tb0193_write8,
+ write16: tb0193_write16,
+ write32: tb0193_write32,
+ copy_to: tb0193_copy_to,
+
+ map_priv_1: WINDOW_ADDR,
+};
Please, use C99 initializers.
+static unsigned long lcard_max_flash_size = 0x01000000;
+static struct mtd_partition lcard_partitions[] = {
+ {
+ name: "root file system",
+ offset: 0x00000000,
+ size: 0x00c00000,
+ },{
+ name: "monitor",
+ offset: 0x00c00000,
+ size: 0x00020000,
+ mask_flags: MTD_WRITEABLE,
+ },{
+ name: "reserved",
+ offset: 0x00c20000,
+ size: 0x000e0000,
+ },{
+ name: "kernel",
+ offset: 0x00d00000,
+ size: 0x00300000,
+ },
+};
at least for the structs use the C99 initializers.
Later, Juan.
--
In theory, practice and theory are the same, but in practice they
are different -- Larry McVoy
next prev parent reply other threads:[~2003-02-17 9:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-17 4:32 [PATCH][2/2] TANBAC TB0193 (L-Card+) TAKANO Ryousei
2003-02-17 9:21 ` Juan Quintela [this message]
2003-02-17 14:13 ` TAKANO Ryousei
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=86r8a79s9w.fsf@trasno.mitica \
--to=quintela@mandrakesoft.com \
--cc=linux-mips@linux-mips.org \
--cc=takano@os-omicron.org \
/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