memo/kernel registration
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
]
開始行:
-LinuxSHへマージされました。皆さんサポートありがとうござ...
*レスポンスないね〜 [#eab9f14e]
忙しいのかな?~
とりあえず、催促メールを打ってみた。~
#pre{{
Hi Paul-san
We are waiting for your reply. Are you busy ?
In our source, Is there a part that should be corrected ?
}}
Paulさんから速攻で返事が返ってきた。(+0300 (EEST))ってこ...
文章が短いと威圧的に聞こえるかもしれませんけど、そんな気...
#pre{{
It looks fine as it is now, thanks. Unfortunately I have ...
with some other items, so I haven't had a chance to commi...
someone doesn't beat me to it, I'll try to get to it shor...
the delay.
}}
急がすつもりは全然なくって、ただ単に返事が知りたかっただ...
(Excite翻訳まんま、汗。通じてるかな?)~
#pre{{
Thank you for quick answer.
We wanted merely to hear the answer.
No problem to waiting.
Please go by the priority level for which you hope.
}}
----
胡桃さんより、「通常1ヶ月程度はかかるので、慌てないで!...
他に何か私が気がついてなさそうなこと/勘違いしてそうなこ...
*宿題2 [#r3315a28]
-宿題完成
--[[landisk-flat4-include.patch:http://eggplant.ddo.jp/ww...
--[[landisk-flat4-arch-sh.patch:http://eggplant.ddo.jp/ww...
--[[landisk-flat4-drivers.patch:http://eggplant.ddo.jp/ww...
~
-メーリングリストへメール送信完了~
~
-駄文~
kernelのビルド&テストを繰り返す時、distcc環境とkexecがあ...
**1.drivers/charのルール … 了解 [#n42c2105]
#pre{{
On Fri, Sep 16, 2005 at 10:46:06PM +0900, kogiidena wrote:
> - rtc.c
> I separated rtc.c to new rtc.c and rs5c313_rtc.c.
> May I put rs5c313_rtc.c to driver/char directory ?.
> Though it noticed later, becase,
>
> 1) rs5c313_rtc.c is depend on SH4-SCI and LANDISK's ...
> 2) LANDISK's FPGA function is not open, so, analysis...
>
> May I put such a source on a general place ?
>
This is fine, there are plenty of things in drivers/char...
much platform dependant. It is however still a more corr...
store these sorts of things. It's also easier to make it...
agnostic if in the future someone wants to do the work t...
on something else.
}}
-drivers/charは、基本的に何でも置いて良いってことか!~
rs5c313_rtc.cをドライバレベルまで昇格させたのは、結局取り...
**2.boards/landisk ディレクトリのルール … 完了 [#kc4fbbd9]
#pre{{
> - landisk_pwb.c
> landisk_pwb.c handles very board specific functions ...
> FPGA.
> For example, POWER SWITCH Control, another Button Co...
> buzzer
> control are included.
> Could one really reuse it for the other boards or ar...
> We hope it store to board/landisk directory.
>
This is a matter of taste I suppose. MIPS traditionally ...
drivers/char, and ARM generally keeps these in the board...
directories. I suppose there's no problem in leaving it ...
now.
}}
-意訳するとこんな感じかな?&color(red){本筋は合っています...
#pre{{
これは好き好きです。MIPS系は伝統的にdrivers/charへ置くけ...
置く傾向がある。landisk_pwb.cは今のままで何の問題もないか...
}}
ということらしいので、landisk_pwb.c はboards/landiskへ置...
MIPS系の話を持ち出したPaulさん的には、drivers/charへ置い...
(あそこに置くと、置いた事を忘れてしまうので、全部まとめ...
~
-もしdrivers/charに置いて欲しければ彼ははっきりそう主張す...
--ありがとうございます。"it"を多用されると、どれにかかっ...
-Paulさんは、元々自信はないけど(I suppose)、置き方は趣味...
-その例として、MIPS系は、...だし、ARMは board-specific di...
**3. コードクリーニングその1 … 完了 [#c7845df0]
#pre{{
On Mon, Sep 19, 2005 at 09:54:35PM +0900, kogiidena wrote:
> We modified the patch of LANDISK
>
> (1) I separated rtc.c to new rtc.c and drivers/char/rs...
> (2) rs5c313_rtc.c was rewritten to operate as a driver.
> (3) scripts/Lindent was used.
> (4) mach.c used c99 initializers.
> (5) mach.c was put in setup.c
> (6) IDE_ARCH_OBSOLETE_INIT and __WANT_IO_DEF are remov...
>
> Please teach me when there is a point that should be c...
>
> (a)
> http://eggplant.ddo.jp/www/download/kernel26/merge/lan...
This looks ok. One minor thing would be to delete all of...
out and unused/dead code from the patch, as there seems ...
of it (for debugging I suppose), and we don't really wan...
than that, it looks ok.
}}
-コメント化して殺している(デバッグ)コードを削除してくださ...
--全削除完了。
--IOデータオリジナル部分はとっておきたかったんだけど、削...
**4. コードクリーニングその2 … 完了 [#x8940890]
#pre{{
> (b)
> http://eggplant.ddo.jp/www/download/kernel26/merge/lan...
Much better.
}}
-デッドコード部分を念のため削除~
**5. コードクリーニングその3 … 完了 [#g674be54]
#pre{{
> (c)
> http://eggplant.ddo.jp/www/download/kernel26/merge/lan...
>
This generally also looks ok. It would be nice if the rs...
driver would consolidate all of the copyrights/header st...
the file (as things like ds1286.c do, for instance).
If you can fix those few minor issues, I'll merge it.
}}
-ds1286.c を見習って、コピーライト記述を先頭部分に集約し...
--先頭部分に集約完了
--3行も英文あるけど、これ以外には何も要求されてないよな?
-3行はどのファイルのコピーライトをという意味があるので、...
-胡桃さん、ありがとうございます。カーネルコードの取り纏め...
臨機応変に対応してくださるところを見ると、Paulさんって案...
-人よりけりだとおもうけど、日本人よりだいたいがオープンソ...
*宿題1 [#ha88b0de]
** 1.Thanks [#fea98a15]
#pre{{
On Wed, Sep 14, 2005 at 01:54:11AM +0900, kogiidena wrote:
> We ported LinuxSH to LANDISK made by I-O DATA DEVICE, ...
> We hope for merging the source to LinuxSH.
> Can we contribute it to LinuxSH, if it's ok ?
>
> patch is in here:
> http://eggplant.ddo.jp/www/download/kernel26/merge/lan...
>
Most of the board-specific parts look ok, but the driver...
moved somewhere else.. and there are a few other minor i...
}}
-こんなに丁寧にチェックしていただき、まじ、感謝します。~
大変だったろうに。ありがとうございます。~
-kkojimaさん、Saito.Kさん、貴重なコメントありがとうござい...
本当に助かりました。~
~
-とりあえず、パッチを3パターン用意しました。%%どっちにす...
先制攻撃ってわけでもないけど、3番目のを投げました。~
--arch/sh/board/landisk/rs5c313_rtc.c バージョン~
[[landisk-support-flat2.patch:http://eggplant.ddo.jp/www/...
~
--drivers/char/rs5c313_rtc.c バージョン~
[[landisk-support-flat2-char.patch:http://eggplant.ddo.jp...
~
--drivers/char/rs5c313_rtc.c 大改造バージョン … ただし...
---[[landisk-flat3-include.patch:http://eggplant.ddo.jp/w...
---[[landisk-flat3-arch-sh.patch:http://eggplant.ddo.jp/w...
---[[landisk-flat3-drivers.patch:http://eggplant.ddo.jp/w...
**2.rtc.c/rs5c313_rtc.c … たぶん完了[#q8f1571a]
#pre{{
> * arch/sh/boards/landisk/rtc.c: New file.
> * arch/sh/boards/landisk/landisk_pwb.c: New file.
These should go in to drivers/char. rtc.c should be rena...
like rs5c313_rtc.c. You can have an rtc.c in the landisk...
that's where you should move the gettimeofday/settimeofd...
board-specific time init code. Most of the rest of the R...
generic, so moving it to drivers/char gives other people...
it (perhaps also add a Kconfig option for it to drivers/...
}}
-rtc~
作業内容と作業量が全くつかめていません。… だんだんわかっ...
-New rtc.cは次の関数のみで構成するのかな?
--landisk_rtc_gettimeofday()
--landisk_rtc_settimeofday()
--landisk_time_init()
--でその他の部分がgenericか。
-genericである。というより、「する」のイメージに近そう。
--RTCチップは3線インタフェース。SH4の%%SCIインターフェー...
http://www.ricoh.co.jp/LSI/product_rtc/3wire/5c313/5c313-...
---%%SCIのレジスタを直アクセス。再利用むずかしそう。%%~
---&color(red){SCIインターフェースは未使用。ただし、ポー...
--0xb0000008 へ0x02の書き込み…謎のアクセス。~
---RTC割り込みは未使用。従って割り込みマスク制御でもなさ...
---時計の桁上がり(BUSY)をチェック後、BUSYの時に限り、本...
---CPLDでBUSWAITさせてる? &color(red){でもライトアクセ...
~
----
-/drivers/char/に移してって事では(英語わかんないので雰囲...
--うちのCTP/PCI-SH03用のコードは、/drivers/char/sh03rtc.c...
--sh03のRTCはSRAMインタフェースなんですね。ベースアドレス...
-should だから、これこれしなさい/すべしということです。 -...
--can have ... は、landisk directory 置いてもいいよって。...
--landisk に置く時は、geettimeofday/settimeofday として、...
--ごめん。上の続き。board特有のitme init code とする。 --...
--Most of ..のところは、残った RTC code は dirvers/char/...
--パッチは、rs5c313_rtc.cを、/drivers/char/に持っていった...
--管理人さん、ごめんなさい。ちょっと私のお節介おそかった...
--いえいえ、綺麗に分離できない理由(したくない理由)は、...
--了解です。中身(code全体)がわかっていないので。0xb0000...
--0xb0000008へのアクセスはオリジナルです。ありがとうござ...
-0xb0000008ではなく0xb0000003では?調べた限りではCPLD(FPG...
--RTCアクセスのサンプルのコードは mizore にあるので良けれ...
--「8」なんですよ。シャドーになってるはずだから、「0」...
#pre{{
if (!(rs5c313_read_cntreg() & RS5C313_CNTR...
break;
ctrl_outb(0x02, 0xB0000008);
ctrl_outb(0x00, RS5C313_CE); ← これは0x...
ndelay(700); /* CE:L */
}}
--rtc.c見たら確かにありますね。いままで気がつきませんでし...
-機種依存部分を分離して、さらにrs5c313_rtc.cをドライバと...
**3. landisk_pwd.cの分離 … とりあえず放置[#rebfffd9]
~
-landisk_pwb.c … 分離しろと言ってるわけではなく、チェッ...
--%%LANIDSKのボタン制御等を行う部分%%~
--%%分離しても再利用されることはなさそう。%%~
--%%この場所にあっちゃだめなのかな?%%~
--%%交渉の余地あり?%%。~
-landisk_pwb.c も持って行けと言ってるみたいですね。
うーん私も全く同じ疑問を持ちました。 何か勘違いがあるの...
#pre{{
landisk_pwb.c handles very board specific functions impl...
Could one really reuse it for the other boards or archs?
}}
とか言ってみた方がいいかもしれませんね。 # 英語あやしいで...
-RTCは分離してみたものの、SH4のSCIとFPGAに依存しているこ...
-RTCは、生産中止の保守部品あつかいだし。。。 -- [[管理人]...
-landisk_pwb.c is implemented for the specific functions ...
-上の英語は案でした。コードの意図はなにか。そして、2行目...
-入る方がいいかと思います。 -- [[胡桃]] &new{2005-09-18 (...
-何から、何まですみませんです。メーリングリストに送るまえ...
-いえいえ。MLに送ってしまうのも no problemです。kkojimaさ...
**4.scripts/Lindent … 解決 [#od33e8f8]
#pre{{
At the same time, please also run landisk_pwb.c through ...
or something similar, it needs to comply with Documentat...
}}
ソース整形ツールでチェックしてね、ってことかな?~
きっと誰かやり方をしってるでしょう。~
対応可能。~
-これは kernel source の top で scripts/Lindent arch/sh/b...
**5.c99 initializers … 解決 [#d440586e]
#pre{{
> * arch/sh/boards/landisk/setup.c: New file.
> * arch/sh/boards/landisk/mach.c: New file.
mach.c needs to use c99 initializers, and you can also j...
setup.c (as other boards are doing).
}}
mach.cは対応可能。~
setup.cは何が問題?~
-mach.c を setup.c に入れちゃえと言ってるみたいですね。 -...
**6.define label … 解決 [#e94b7cad]
#pre{{
> * include/asm-sh/irq.h: Add LANDISK support.
> * include/asm-sh/landisk/io.h: New file.
> * include/asm-sh/landisk/gio.h: New file.
> * include/asm-sh/landisk/ide.h: New file.
> * include/asm-sh/landisk/iodata_landisk.h: New file.
>
Can you explain why you are using IDE_ARCH_OBSOLETE_INIT...
__WANT_IO_DEF?
}}
-__WANT_IO_DEF … 使用されていないようだ。削除でOK!~
~
-IDE_ARCH_OBSOLETE_INIT … これも削除でOK~
ちなみに使用箇所は下記のみ。~
--drivers/ide/setup-pci.c
#pre{{
#ifndef IDE_ARCH_OBSOLETE_INIT
&color(blue){ide_std_init_ports(&hwif->hw, base, (ctl |...
&color(blue){hwif->hw.io_ports[IDE_IRQ_OFFSET] = 0;};
#else
ide_init_hwif_ports(&hwif->hw, base, (ctl | &color(red)...
#endif
}}
--include/linux/ide.h~
#pre{{
#ifdef IDE_ARCH_OBSOLETE_INIT
static inline void ide_init_hwif_ports(hw_regs_t *hw,
unsigned long io_addr,
unsigned long ctl_addr,
int *irq)
{
if (!ctl_addr)
ide_std_init_ports(hw, io_addr, ide_default_io_ctl(io_a...
else
&color(red){ide_std_init_ports(hw, io_addr, ctl_addr);};
if (irq)
*irq = 0;
&color(red){hw->io_ports[IDE_IRQ_OFFSET] = 0;};
}
#else
}}
defineされようが、されまいが、結局、同じコードに落ちる。~
~
-#ifdef __WANT_IO_DEFと、#define IDE_ARCH_OBSOLETE_INITが...
--ヒントをありがとうございます。謎がとけました。どうやらP...
**7.別件…kexecのrelocate_kernel.c … 解決 [#nf94ac75]
終了行:
-LinuxSHへマージされました。皆さんサポートありがとうござ...
*レスポンスないね〜 [#eab9f14e]
忙しいのかな?~
とりあえず、催促メールを打ってみた。~
#pre{{
Hi Paul-san
We are waiting for your reply. Are you busy ?
In our source, Is there a part that should be corrected ?
}}
Paulさんから速攻で返事が返ってきた。(+0300 (EEST))ってこ...
文章が短いと威圧的に聞こえるかもしれませんけど、そんな気...
#pre{{
It looks fine as it is now, thanks. Unfortunately I have ...
with some other items, so I haven't had a chance to commi...
someone doesn't beat me to it, I'll try to get to it shor...
the delay.
}}
急がすつもりは全然なくって、ただ単に返事が知りたかっただ...
(Excite翻訳まんま、汗。通じてるかな?)~
#pre{{
Thank you for quick answer.
We wanted merely to hear the answer.
No problem to waiting.
Please go by the priority level for which you hope.
}}
----
胡桃さんより、「通常1ヶ月程度はかかるので、慌てないで!...
他に何か私が気がついてなさそうなこと/勘違いしてそうなこ...
*宿題2 [#r3315a28]
-宿題完成
--[[landisk-flat4-include.patch:http://eggplant.ddo.jp/ww...
--[[landisk-flat4-arch-sh.patch:http://eggplant.ddo.jp/ww...
--[[landisk-flat4-drivers.patch:http://eggplant.ddo.jp/ww...
~
-メーリングリストへメール送信完了~
~
-駄文~
kernelのビルド&テストを繰り返す時、distcc環境とkexecがあ...
**1.drivers/charのルール … 了解 [#n42c2105]
#pre{{
On Fri, Sep 16, 2005 at 10:46:06PM +0900, kogiidena wrote:
> - rtc.c
> I separated rtc.c to new rtc.c and rs5c313_rtc.c.
> May I put rs5c313_rtc.c to driver/char directory ?.
> Though it noticed later, becase,
>
> 1) rs5c313_rtc.c is depend on SH4-SCI and LANDISK's ...
> 2) LANDISK's FPGA function is not open, so, analysis...
>
> May I put such a source on a general place ?
>
This is fine, there are plenty of things in drivers/char...
much platform dependant. It is however still a more corr...
store these sorts of things. It's also easier to make it...
agnostic if in the future someone wants to do the work t...
on something else.
}}
-drivers/charは、基本的に何でも置いて良いってことか!~
rs5c313_rtc.cをドライバレベルまで昇格させたのは、結局取り...
**2.boards/landisk ディレクトリのルール … 完了 [#kc4fbbd9]
#pre{{
> - landisk_pwb.c
> landisk_pwb.c handles very board specific functions ...
> FPGA.
> For example, POWER SWITCH Control, another Button Co...
> buzzer
> control are included.
> Could one really reuse it for the other boards or ar...
> We hope it store to board/landisk directory.
>
This is a matter of taste I suppose. MIPS traditionally ...
drivers/char, and ARM generally keeps these in the board...
directories. I suppose there's no problem in leaving it ...
now.
}}
-意訳するとこんな感じかな?&color(red){本筋は合っています...
#pre{{
これは好き好きです。MIPS系は伝統的にdrivers/charへ置くけ...
置く傾向がある。landisk_pwb.cは今のままで何の問題もないか...
}}
ということらしいので、landisk_pwb.c はboards/landiskへ置...
MIPS系の話を持ち出したPaulさん的には、drivers/charへ置い...
(あそこに置くと、置いた事を忘れてしまうので、全部まとめ...
~
-もしdrivers/charに置いて欲しければ彼ははっきりそう主張す...
--ありがとうございます。"it"を多用されると、どれにかかっ...
-Paulさんは、元々自信はないけど(I suppose)、置き方は趣味...
-その例として、MIPS系は、...だし、ARMは board-specific di...
**3. コードクリーニングその1 … 完了 [#c7845df0]
#pre{{
On Mon, Sep 19, 2005 at 09:54:35PM +0900, kogiidena wrote:
> We modified the patch of LANDISK
>
> (1) I separated rtc.c to new rtc.c and drivers/char/rs...
> (2) rs5c313_rtc.c was rewritten to operate as a driver.
> (3) scripts/Lindent was used.
> (4) mach.c used c99 initializers.
> (5) mach.c was put in setup.c
> (6) IDE_ARCH_OBSOLETE_INIT and __WANT_IO_DEF are remov...
>
> Please teach me when there is a point that should be c...
>
> (a)
> http://eggplant.ddo.jp/www/download/kernel26/merge/lan...
This looks ok. One minor thing would be to delete all of...
out and unused/dead code from the patch, as there seems ...
of it (for debugging I suppose), and we don't really wan...
than that, it looks ok.
}}
-コメント化して殺している(デバッグ)コードを削除してくださ...
--全削除完了。
--IOデータオリジナル部分はとっておきたかったんだけど、削...
**4. コードクリーニングその2 … 完了 [#x8940890]
#pre{{
> (b)
> http://eggplant.ddo.jp/www/download/kernel26/merge/lan...
Much better.
}}
-デッドコード部分を念のため削除~
**5. コードクリーニングその3 … 完了 [#g674be54]
#pre{{
> (c)
> http://eggplant.ddo.jp/www/download/kernel26/merge/lan...
>
This generally also looks ok. It would be nice if the rs...
driver would consolidate all of the copyrights/header st...
the file (as things like ds1286.c do, for instance).
If you can fix those few minor issues, I'll merge it.
}}
-ds1286.c を見習って、コピーライト記述を先頭部分に集約し...
--先頭部分に集約完了
--3行も英文あるけど、これ以外には何も要求されてないよな?
-3行はどのファイルのコピーライトをという意味があるので、...
-胡桃さん、ありがとうございます。カーネルコードの取り纏め...
臨機応変に対応してくださるところを見ると、Paulさんって案...
-人よりけりだとおもうけど、日本人よりだいたいがオープンソ...
*宿題1 [#ha88b0de]
** 1.Thanks [#fea98a15]
#pre{{
On Wed, Sep 14, 2005 at 01:54:11AM +0900, kogiidena wrote:
> We ported LinuxSH to LANDISK made by I-O DATA DEVICE, ...
> We hope for merging the source to LinuxSH.
> Can we contribute it to LinuxSH, if it's ok ?
>
> patch is in here:
> http://eggplant.ddo.jp/www/download/kernel26/merge/lan...
>
Most of the board-specific parts look ok, but the driver...
moved somewhere else.. and there are a few other minor i...
}}
-こんなに丁寧にチェックしていただき、まじ、感謝します。~
大変だったろうに。ありがとうございます。~
-kkojimaさん、Saito.Kさん、貴重なコメントありがとうござい...
本当に助かりました。~
~
-とりあえず、パッチを3パターン用意しました。%%どっちにす...
先制攻撃ってわけでもないけど、3番目のを投げました。~
--arch/sh/board/landisk/rs5c313_rtc.c バージョン~
[[landisk-support-flat2.patch:http://eggplant.ddo.jp/www/...
~
--drivers/char/rs5c313_rtc.c バージョン~
[[landisk-support-flat2-char.patch:http://eggplant.ddo.jp...
~
--drivers/char/rs5c313_rtc.c 大改造バージョン … ただし...
---[[landisk-flat3-include.patch:http://eggplant.ddo.jp/w...
---[[landisk-flat3-arch-sh.patch:http://eggplant.ddo.jp/w...
---[[landisk-flat3-drivers.patch:http://eggplant.ddo.jp/w...
**2.rtc.c/rs5c313_rtc.c … たぶん完了[#q8f1571a]
#pre{{
> * arch/sh/boards/landisk/rtc.c: New file.
> * arch/sh/boards/landisk/landisk_pwb.c: New file.
These should go in to drivers/char. rtc.c should be rena...
like rs5c313_rtc.c. You can have an rtc.c in the landisk...
that's where you should move the gettimeofday/settimeofd...
board-specific time init code. Most of the rest of the R...
generic, so moving it to drivers/char gives other people...
it (perhaps also add a Kconfig option for it to drivers/...
}}
-rtc~
作業内容と作業量が全くつかめていません。… だんだんわかっ...
-New rtc.cは次の関数のみで構成するのかな?
--landisk_rtc_gettimeofday()
--landisk_rtc_settimeofday()
--landisk_time_init()
--でその他の部分がgenericか。
-genericである。というより、「する」のイメージに近そう。
--RTCチップは3線インタフェース。SH4の%%SCIインターフェー...
http://www.ricoh.co.jp/LSI/product_rtc/3wire/5c313/5c313-...
---%%SCIのレジスタを直アクセス。再利用むずかしそう。%%~
---&color(red){SCIインターフェースは未使用。ただし、ポー...
--0xb0000008 へ0x02の書き込み…謎のアクセス。~
---RTC割り込みは未使用。従って割り込みマスク制御でもなさ...
---時計の桁上がり(BUSY)をチェック後、BUSYの時に限り、本...
---CPLDでBUSWAITさせてる? &color(red){でもライトアクセ...
~
----
-/drivers/char/に移してって事では(英語わかんないので雰囲...
--うちのCTP/PCI-SH03用のコードは、/drivers/char/sh03rtc.c...
--sh03のRTCはSRAMインタフェースなんですね。ベースアドレス...
-should だから、これこれしなさい/すべしということです。 -...
--can have ... は、landisk directory 置いてもいいよって。...
--landisk に置く時は、geettimeofday/settimeofday として、...
--ごめん。上の続き。board特有のitme init code とする。 --...
--Most of ..のところは、残った RTC code は dirvers/char/...
--パッチは、rs5c313_rtc.cを、/drivers/char/に持っていった...
--管理人さん、ごめんなさい。ちょっと私のお節介おそかった...
--いえいえ、綺麗に分離できない理由(したくない理由)は、...
--了解です。中身(code全体)がわかっていないので。0xb0000...
--0xb0000008へのアクセスはオリジナルです。ありがとうござ...
-0xb0000008ではなく0xb0000003では?調べた限りではCPLD(FPG...
--RTCアクセスのサンプルのコードは mizore にあるので良けれ...
--「8」なんですよ。シャドーになってるはずだから、「0」...
#pre{{
if (!(rs5c313_read_cntreg() & RS5C313_CNTR...
break;
ctrl_outb(0x02, 0xB0000008);
ctrl_outb(0x00, RS5C313_CE); ← これは0x...
ndelay(700); /* CE:L */
}}
--rtc.c見たら確かにありますね。いままで気がつきませんでし...
-機種依存部分を分離して、さらにrs5c313_rtc.cをドライバと...
**3. landisk_pwd.cの分離 … とりあえず放置[#rebfffd9]
~
-landisk_pwb.c … 分離しろと言ってるわけではなく、チェッ...
--%%LANIDSKのボタン制御等を行う部分%%~
--%%分離しても再利用されることはなさそう。%%~
--%%この場所にあっちゃだめなのかな?%%~
--%%交渉の余地あり?%%。~
-landisk_pwb.c も持って行けと言ってるみたいですね。
うーん私も全く同じ疑問を持ちました。 何か勘違いがあるの...
#pre{{
landisk_pwb.c handles very board specific functions impl...
Could one really reuse it for the other boards or archs?
}}
とか言ってみた方がいいかもしれませんね。 # 英語あやしいで...
-RTCは分離してみたものの、SH4のSCIとFPGAに依存しているこ...
-RTCは、生産中止の保守部品あつかいだし。。。 -- [[管理人]...
-landisk_pwb.c is implemented for the specific functions ...
-上の英語は案でした。コードの意図はなにか。そして、2行目...
-入る方がいいかと思います。 -- [[胡桃]] &new{2005-09-18 (...
-何から、何まですみませんです。メーリングリストに送るまえ...
-いえいえ。MLに送ってしまうのも no problemです。kkojimaさ...
**4.scripts/Lindent … 解決 [#od33e8f8]
#pre{{
At the same time, please also run landisk_pwb.c through ...
or something similar, it needs to comply with Documentat...
}}
ソース整形ツールでチェックしてね、ってことかな?~
きっと誰かやり方をしってるでしょう。~
対応可能。~
-これは kernel source の top で scripts/Lindent arch/sh/b...
**5.c99 initializers … 解決 [#d440586e]
#pre{{
> * arch/sh/boards/landisk/setup.c: New file.
> * arch/sh/boards/landisk/mach.c: New file.
mach.c needs to use c99 initializers, and you can also j...
setup.c (as other boards are doing).
}}
mach.cは対応可能。~
setup.cは何が問題?~
-mach.c を setup.c に入れちゃえと言ってるみたいですね。 -...
**6.define label … 解決 [#e94b7cad]
#pre{{
> * include/asm-sh/irq.h: Add LANDISK support.
> * include/asm-sh/landisk/io.h: New file.
> * include/asm-sh/landisk/gio.h: New file.
> * include/asm-sh/landisk/ide.h: New file.
> * include/asm-sh/landisk/iodata_landisk.h: New file.
>
Can you explain why you are using IDE_ARCH_OBSOLETE_INIT...
__WANT_IO_DEF?
}}
-__WANT_IO_DEF … 使用されていないようだ。削除でOK!~
~
-IDE_ARCH_OBSOLETE_INIT … これも削除でOK~
ちなみに使用箇所は下記のみ。~
--drivers/ide/setup-pci.c
#pre{{
#ifndef IDE_ARCH_OBSOLETE_INIT
&color(blue){ide_std_init_ports(&hwif->hw, base, (ctl |...
&color(blue){hwif->hw.io_ports[IDE_IRQ_OFFSET] = 0;};
#else
ide_init_hwif_ports(&hwif->hw, base, (ctl | &color(red)...
#endif
}}
--include/linux/ide.h~
#pre{{
#ifdef IDE_ARCH_OBSOLETE_INIT
static inline void ide_init_hwif_ports(hw_regs_t *hw,
unsigned long io_addr,
unsigned long ctl_addr,
int *irq)
{
if (!ctl_addr)
ide_std_init_ports(hw, io_addr, ide_default_io_ctl(io_a...
else
&color(red){ide_std_init_ports(hw, io_addr, ctl_addr);};
if (irq)
*irq = 0;
&color(red){hw->io_ports[IDE_IRQ_OFFSET] = 0;};
}
#else
}}
defineされようが、されまいが、結局、同じコードに落ちる。~
~
-#ifdef __WANT_IO_DEFと、#define IDE_ARCH_OBSOLETE_INITが...
--ヒントをありがとうございます。謎がとけました。どうやらP...
**7.別件…kexecのrelocate_kernel.c … 解決 [#nf94ac75]
ページ名: