/* 2 * Implement the default iomap interfaces 3 * 4 * (C) Copyright 2004 Linus Torvalds 5 */ 6 #include <linux/pci.h> 7 #include <linux/io.h> 8 9 #include <linux/module.h> 10 11 /* 12 * Read/write from/to an (offsettable) iomem cookie. It might be a PIO 13 * access or a MMIO access, these functions don't care. The info is 14 * encoded in the hardware mapping set up by the mapping functions 15 * (or the cookie itself, depending on implementation and hw). 16 * 17 * The generic routines don't assume any hardware mappings, and just 18 * encode the PIO/MMIO as part of the cookie. They coldly assume that 19 * the MMIO IO mappings are not in the low address range. 20 * 21 * Architectures for which this is not true can't use this generic 22 * implementation and should do their own copy. 2010/9/22 Dmitry Podgorny <pasis.ua@gmail.com>:
Предлагаю еще обсудить интерфейс доступа к регистрам. До этого я использовал исключительно PIO. Но как я понял из коммита http://github.com/pasis/pcnet-driver/commit/60d4f2b05f0ef5bd3470ab9d71f6cf53... планируется использовать MMIO/PIO. Будем ли реализовывать динамическое переключение между MMIO/PIO или только во время компиляции? А также как реализовывать возможность работы контроллера в 16бит и 32бит режиме?
В Tue, 21 Sep 2010 23:12:17 +0400 Denis Kirjanov <kirjanov@gmail.com> пишет:
Доброго времени!
Я бегло просмотрел докуметацию, и хотел бы обсудить вопрос о DMA. О Initialization block, о формате DMA-дескрипторов etc Если у кого-нибудь есть целостная картина как это работает, то дамп мыслей можно сюда.
PS: постараюсь разобраться с этим в ближайшее время.
Thanks
_______________________________________________ Kernel-russian mailing list Kernel-russian@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernel-russian
-- Regards, Denis