mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* serial_ns16550 driver question
@ 2011-07-20 19:51 Antony Pavlov
  2011-07-20 20:31 ` Sascha Hauer
  0 siblings, 1 reply; 5+ messages in thread
From: Antony Pavlov @ 2011-07-20 19:51 UTC (permalink / raw)
  To: barebox

Hi!

In include/ns16550.h we have:

struct NS16550_plat {
        unsigned int clock;
        unsigned char f_caps;
        /**
         * register read access capability
         */
        unsigned int (*reg_read) (unsigned long base, unsigned char reg_offset);
        /**
         * register write access capability
         */
        void (*reg_write) (unsigned int val, unsigned long base,
                                    unsigned char reg_offset);
};

Why reg_read and reg_write's argument base has type unsigned long?
IMHO pointer type (void * or char *)  is more natural.

-- 
Best regards,
  Antony Pavlov

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-07-21  8:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-20 19:51 serial_ns16550 driver question Antony Pavlov
2011-07-20 20:31 ` Sascha Hauer
2011-07-21  3:12   ` Jean-Christophe PLAGNIOL-VILLARD
2011-07-21  6:28     ` Sascha Hauer
2011-07-21  8:34       ` Juergen Beisert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox