All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] Reuse of H4 and BCSP code
@ 2002-11-25 21:43 Marcel Holtmann
  2002-11-26 18:02 ` Max Krasnyansky
  0 siblings, 1 reply; 7+ messages in thread
From: Marcel Holtmann @ 2002-11-25 21:43 UTC (permalink / raw)
  To: BlueZ Mailing List

Hi,

the current hci_uart.o driver supports H4 and BCSP HCI protocols and the
code from it should be reusable by the other drivers two. For example
most PCMCIA cards are a kind of serial cards with an UART on it. The
only difference is how the UART would be used to talk to the Bluetooth
chips and many times you need some extra code. If this Bluetooth chip is
one from CSR their are two protocols available two use and you can
switch between them if you like (and autodetection would be great). So
it should be possible to reuse the H4 and the BCSP code, which will make
some PCCARD drivers a little bit smaller.

The current driver which can reuse the code are:

bluecard_cs:	H4
bt3c_cs:	H4
btuart_cs:	H4 and BCSP
bt950_cs:	H4 and BCSP
hci_uart:	H4 and BCSP

At the moment I see two ways of doing this, but maybe there are more of
them.

1. Let the hci_uart driver export some function to let the drivers
register. Maybe something like:

	hci_register_uart	(which later calls hci_register_dev)
	hci_unregister_uart	(which later calls hci_unregister_dev)

2. Make the code in hci_h4.c and hci_bcsp.c linkable against the driver.

Both versions have advantages and disadvantages. The first one keeps the
size of the driver module small, but you always need another module to
interface with the HCI core. The second one need no other modules, but
the code for the UART protocols are in every driver.

>From me personal view of it I don't like to have too much modules and I
would go with the second possibility. But anyway for both methods some
parts of the BCSP init code have to be moved to the kernel space.

Please comment on this. Anyone who will start with this?

Regards

Marcel




-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

end of thread, other threads:[~2003-01-15 23:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-25 21:43 [Bluez-devel] Reuse of H4 and BCSP code Marcel Holtmann
2002-11-26 18:02 ` Max Krasnyansky
2002-11-27 15:09   ` Marcel Holtmann
2002-11-27 18:34     ` Max Krasnyansky
2002-11-28  6:47       ` Marcel Holtmann
2003-01-15 23:45         ` David Woodhouse
2002-11-28 12:35     ` David Woodhouse

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.