Aircard 555 FreeBSD 6.0 patch

Purushotham Nayak <[email protected]>
Newsgroups gmane.os.freebsd.devel.mobile
Message-ID <[email protected]>
Hi All,

Here's the patches ( I had to make two files because i
still donno diff and patch that well, will combine
when I get time ). These patches are for FreeBSD 6.0.
It's easy to manually make the changes to other
versions. 

To install the patch.

# cd /sys/dev/pccard
# patch pccarddevs [path to diff
file]/ac555carddevs.diff
# patch pccard_cis_quirks.c [path to diff
file]/ac555quirks.diff

Recompile the kernel and the Aircard AC555 should
work. It needs to be activated before you can use ppp
on it.

Purushotham

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com

_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-mobile
To unsubscribe, send any mail to "[email protected]"
ac555carddev.diff (text/x-patch, 760 B)
*** pccarddevs.60	Tue Dec 13 12:28:10 2005
--- pccarddevs.ac555	Tue Dec 13 12:25:34 2005
***************
*** 131,136 ****
--- 131,137 ----
  vendor KINGSTON			0x0186	Kingston
  vendor MELCO			0x018a	Melco Corporation
  vendor GLOBALVILLAGE		0x018c	Global Village
+ vendor SIERRA			0x0192  Sierra Wireless
  vendor DAYNA			0x0194	Dayna Corporation
  vendor RAYTHEON			0x01a6	Raytheon
  vendor RACORE			0x01bf	Racore Computer Products
***************
*** 538,543 ****
--- 539,547 ----
  
  /* Siemens */
  product SIEMENS SS1021		0x0002 Siemens SpeedStream 1021
+ 
+ /* Sierra Wireless Aircard 555 */
+ product SIERRA AC555		0xa555 Aircard 555
  
  /* Simple Technology Products */
  product SIMPLETECH COMMUNICATOR288 0x0100 Simple Technology 28.8 Communicator
ac555quirks.diff (text/x-patch, 3.2 KB)
*** pccard_cis_quirks.c.60	Tue Dec 13 12:27:58 2005
--- pccard_cis_quirks.c.ac555	Tue Dec 13 12:33:00 2005
***************
*** 53,58 ****
--- 53,134 ----
  /* these structures are just static templates which are then copied
     into "live" allocated structures */
  
+ struct pccard_function pccard_ac555_func0 = {
+ 	0,			/* function number */
+ 	PCCARD_FUNCTION_SERIAL,
+ 	0x03,			/* last cfe number */
+ 	0x700,			/* ccr_base */
+ 	0x73,			/* ccr_mask */
+ };
+ 	
+ 
+ 
+ struct pccard_config_entry pccard_ac555_func0_cfe0 = {
+ 	0x20,				/* cfe index*/
+ 	PCCARD_CFE_IO8 | PCCARD_CFE_IRQLEVEL,
+ 	PCCARD_IFTYPE_IO,		/* io card */
+ 	1,				/* num_iospace */
+ 	6,				/* iomask */
+ 	{ {0x0008, 0x03f8} },		/* iospace */
+ 	0x3fbc,				/* irqmask */
+ 	0,				/* num_memspace */		
+ 	{},				/* memspace */
+ 	0,				/* maxtwins */
+ };
+ 
+ struct pccard_config_entry pccard_ac555_func0_cfe1 = {
+ 	0x21,				/* cfe index*/
+ 	PCCARD_CFE_IO8,
+ 	PCCARD_IFTYPE_IO,		/* io card */
+ 	1,				/* num_iospace */
+ 	6,				/* iomask */
+ 	{ {0x0008, 0x02f8} },		/* iospace */
+ 	0xfff8,				/* irqmask */
+ 	0,				/* num_memspace */		
+ 	{},				/* memspace */
+ 	0,				/* maxtwins */
+ };
+ 
+ 
+ struct pccard_config_entry pccard_ac555_func0_cfe2 = {
+ 	0x22,				/* cfe index*/
+ 	PCCARD_CFE_IO8,
+ 	PCCARD_IFTYPE_IO,		/* io card */
+ 	1,				/* num_iospace */
+ 	6,				/* iomask */
+ 	{ {0x0008, 0x03e8} },		/* iospace */
+ 	0xfff8,				/* irqmask */
+ 	0,				/* num_memspace */		
+ 	{},				/* memspace */
+ 	0,				/* maxtwins */
+ };
+ 
+ struct pccard_config_entry pccard_ac555_func0_cfe3 = {
+ 	0x23,				/* cfe index*/
+ 	PCCARD_CFE_IO8,
+ 	PCCARD_IFTYPE_IO,		/* io card */
+ 	1,				/* num_iospace */
+ 	6,				/* iomask */
+ 	{ {0x0008, 0x02e8} },		/* iospace */
+ 	0xfff8,				/* irqmask */
+ 	0,				/* num_memspace */		
+ 	{},				/* memspace */
+ 	0,				/* maxtwins */
+ };
+ 
+ struct pccard_config_entry pccard_ac555_func0_cfe4 = {
+ 	0x24,				/* cfe index*/
+ 	PCCARD_CFE_IO8,
+ 	PCCARD_IFTYPE_IO,		/* io card */
+ 	1,				/* num_iospace */
+ 	6,				/* iomask */
+ 	{ {0x0008, 0x0000} },		/* iospace */
+ 	0xfff8,				/* irqmask */
+ 	0,				/* num_memspace */		
+ 	{},				/* memspace */
+ 	0,				/* maxtwins */
+ };
+ 
  struct pccard_function pccard_3cxem556_func0 = {
  	0,			/* function number */
  	PCCARD_FUNCTION_NETWORK,
***************
*** 199,204 ****
--- 275,290 ----
  	  &pccard_sveclancard_func0, &pccard_sveclancard_func0_cfe0 },
  	{ PCMCIA_VENDOR_INVALID, PCMCIA_PRODUCT_INVALID, PCMCIA_CIS_NDC_ND5100_E,
  	  &pccard_ndc_nd5100_func0, &pccard_ndc_nd5100_func0_cfe0 },
+ 	{ PCMCIA_VENDOR_SIERRA, PCMCIA_PRODUCT_SIERRA_AC555, PCMCIA_CIS_INVALID,
+ 	  &pccard_ac555_func0, &pccard_ac555_func0_cfe0 },
+ 	{ PCMCIA_VENDOR_SIERRA, PCMCIA_PRODUCT_SIERRA_AC555, PCMCIA_CIS_INVALID,
+ 	  &pccard_ac555_func0, &pccard_ac555_func0_cfe1 },
+ 	{ PCMCIA_VENDOR_SIERRA, PCMCIA_PRODUCT_SIERRA_AC555, PCMCIA_CIS_INVALID,
+ 	  &pccard_ac555_func0, &pccard_ac555_func0_cfe2 },
+ 	{ PCMCIA_VENDOR_SIERRA, PCMCIA_PRODUCT_SIERRA_AC555, PCMCIA_CIS_INVALID,
+ 	  &pccard_ac555_func0, &pccard_ac555_func0_cfe3 },
+ 	{ PCMCIA_VENDOR_SIERRA, PCMCIA_PRODUCT_SIERRA_AC555, PCMCIA_CIS_INVALID,
+ 	  &pccard_ac555_func0, &pccard_ac555_func0_cfe4 },
  };
  	
  static int n_pccard_cis_quirks =
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.