From: Erwin Authried <eauth@softsys.co.at>
To: 'MTD List' <mtd@infradead.org>
Subject: Re: 2.4 stuff.
Date: Tue, 21 Nov 2000 12:15:19 +0100 [thread overview]
Message-ID: <01C053B4.B7C47C60@smithwicks.softsys.co.at> (raw)
I had to make a few changes to the inter_module stuff to get
MTD working for uClinux.The changes are explained below.
They are not yet comitted, please let me know what you think.
-Erwin
* map_rom.c
There is a im_name member used in map_rom.c, line 51. Has this
been added by mistake? In mtd.h, there's no such member.
* compatmac.h:
For 2.0, the inter_module_* functions are defined as empty macros
if CONFIG_MODULES is not defined. If CONFIG_MODULES is defined
(for 2.0), compilation is stopped with #error saying that it's not possible
to use MTD in 2.0 kernels with module support enabled.
* I have removed the "static" for the cfi_cmdset_0001/0002 probe functions.
* I have added a switch statement for compilation without module support
in cfi_probe.c:
+#ifdef CONFIG_MODULES
sprintf(probename, "cfi_cmdset_%4.4X", type);
probe_function = inter_module_get_request(probename, probename);
@@ -743,6 +747,20 @@
(*probe_function)(map, primary, base);
return;
}
+#else
+ switch(type){
+#ifdef CONFIG_MTD_CFI_INTELEXT
+ case 0x0001:
+ cfi_cmdset_0001(map,primary,base);
+ return;
+#endif
+#ifdef CONFIG_MTD_CFI_AMDSTD
+ case 0x0002:
+ cfi_cmdset_0002(map,primary,base);
+ return;
+#endif
+ }
+#endif /* CONFIG_MODULES */
To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org
next reply other threads:[~2000-11-21 11:19 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-21 11:15 Erwin Authried [this message]
2000-11-21 11:42 ` 2.4 stuff David Woodhouse
-- strict thread matches above, loose matches on Subject: below --
2000-11-21 13:46 Erwin Authried
2000-11-21 12:11 Erwin Authried
2000-11-21 13:32 ` David Woodhouse
2000-11-21 9:08 David Woodhouse
2000-11-21 14:55 ` Nicolas Pitre
2000-11-21 15:10 ` David Woodhouse
2000-12-12 13:24 ` David Woodhouse
2000-12-12 20:12 ` Nicolas Pitre
2000-12-13 10:24 ` David Woodhouse
2000-12-14 21:25 ` Nicolas Pitre
2000-12-15 17:57 ` Alice Hennessy
2000-12-15 17:59 ` David Woodhouse
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=01C053B4.B7C47C60@smithwicks.softsys.co.at \
--to=eauth@softsys.co.at \
--cc=mtd@infradead.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