Re: divert-to with port range

2013-09-17 Thread Dave Anderson
.a));
   YYERROR;
   }
+  filter_opts.divert.port_top = $4.b;
   }
   | DIVERTREPLY {
   filter_opts.divert.port = 1;/* some random value */
@@ -3073,15 +3096,6 @@
   $$-op = $2;
   $$-next = NULL;
   $$-tail = $$;
-  }
-  ;
-
-portplain : numberstring  {
-  if (parseport($1, $$, 0) == -1) {
-  free($1);
-  YYERROR;
-  }
-  free($1);
   }
   ;




-- 
Dave Anderson
d...@daveanderson.com




Re: Realtek RTS5209 (was: Re: Intel AHCI RAID controller in Sony VAIO Z23 laptop)

2012-05-31 Thread Dave Anderson
On Thu, 31 May 2012, Stefan Sperling wrote:

On Thu, May 31, 2012 at 10:53:22AM +0200, Paul de Weerd wrote:
 I've recently bought a new Sony laptop, VPCZ23C5E.  Some things on
 this machine work fine (sound, suspend, wired network), some things
 don't (X, resume, wireless).

I suppose the card reader won't work either:

 Realtek RTS5209 Card Reader rev 0x01 at pci2 dev 0 function 0 not 
 configured

I have exactly this chip in a new laptop and am trying to write a driver
for it based on information from the linux driver.
I haven't got it working yet but I'll send you a diff once I have
something to show.

It's not an easy task for me and progress is somewhat slower than
I expected so if anyone wants to help that would be great.

I've got one of those too, and can help with testing and perhaps in
other ways: while I've no experience (other than some code-reading) with
BSD internals I have done driver/internals work on a couple of other
systems.

Dave

-- 
Dave Anderson
d...@daveanderson.com



Re: Fix ACPI Asus panics at boot time

2011-05-27 Thread Dave Anderson
 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 Intel 6 Series HD Audio rev 0x05: apic 2 
int 22
azalia0: codecs: Realtek ALC269, Intel/0x2805, using Realtek ALC269
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 Intel 6 Series PCIE rev 0xb5: apic 2 int 16
pci1 at ppb0 bus 1
ppb1 at pci0 dev 28 function 1 Intel 6 Series PCIE rev 0xb5: apic 2 int 17
pci2 at ppb1 bus 2
athn0 at pci2 dev 0 function 0 Atheros AR9285 rev 0x01: apic 2 int 17
athn0: AR9285 rev 2 (1T1R), ROM rev 14, address e0:b9:a5:20:4a:d3
ppb2 at pci0 dev 28 function 5 Intel 6 Series PCIE rev 0xb5: apic 2 int 17
pci3 at ppb2 bus 3
alc0 at pci3 dev 0 function 0 Attansic Technology L1D rev 0xc0: apic 2 int 
17, address f4:6d:04:0b:f9:ec
atphy0 at alc0 phy 0: F1 10/100/1000 PHY, rev. 0
ehci1 at pci0 dev 29 function 0 Intel 6 Series USB rev 0x05: apic 2 int 23
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 Intel EHCI root hub rev 2.00/1.00 addr 1
pcib0 at pci0 dev 31 function 0 Intel HM65 LPC rev 0x05
ahci0 at pci0 dev 31 function 2 Intel 6 Series AHCI rev 0x05: apic 2 int 19, 
AHCI 1.3
scsibus0 at ahci0: 32 targets
sd0 at scsibus0 targ 0 lun 0: ATA, WDC WD5000BEVT-8, 01.0 SCSI3 0/direct 
fixed naa.50014ee600fdfd52
sd0: 476940MB, 512 bytes/sec, 976773168 sec total
cd0 at scsibus0 targ 2 lun 0: MATSHITA, DVD-RAM UJ8A0ASW, 1.01 ATAPI 5/cdrom 
removable
ichiic0 at pci0 dev 31 function 3 Intel 6 Series SMBus rev 0x05: apic 2 int 18
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 4GB DDR3 SDRAM PC3-10600 SO-DIMM
spdmem1 at iic0 addr 0x52: 2GB DDR3 SDRAM PC3-10600 SO-DIMM
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
mtrr: Pentium Pro MTRR support
uhub2 at uhub0 port 1 Intel product 0x0024 rev 2.00/0.00 addr 2
uvideo0 at uhub2 port 2 configuration 1 interface 0 Azurewave USB 2.0 UVC VGA 
WebCam rev 2.00/11.30 addr 3
video0 at uvideo0
uhub3 at uhub1 port 1 Intel product 0x0024 rev 2.00/0.00 addr 2
umass0 at uhub3 port 3 configuration 1 interface 0 HP v125w rev 2.00/40.96 
addr 3
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets, initiator 0
sd1 at scsibus1 targ 1 lun 0: hp, v125w, 4096 SCSI0 0/direct removable 
serial.03f03307104A0902
sd1: 3864MB, 512 bytes/sec, 7913472 sec total
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
root on sd1a (e0166bb8f33fc15d.a) swap on sd1b dump on sd1b

-- 
Dave Anderson
d...@daveanderson.com



Re: Fix ACPI Asus panics at boot time

2011-05-27 Thread Dave Anderson
On Fri, 27 May 2011, Paul Irofti wrote:

 It boots OK using this patch applied to current-as-of-yesterday.

What about the key event? See Paul M's reply -- taking the power cable
out, pressing the special keys etc.

I missed that on first read; sorry.

I'll see what additional info I can gather next time I'm near the store
where this demo machine is, probably later this afternoon.

Dave

-- 
Dave Anderson
d...@daveanderson.com



Re: Fix ACPI Asus panics at boot time

2011-05-27 Thread Dave Anderson
On Fri, 27 May 2011, Dave Anderson wrote:

On Fri, 27 May 2011, Paul Irofti wrote:

 It boots OK using this patch applied to current-as-of-yesterday.

What about the key event? See Paul M's reply -- taking the power cable
out, pressing the special keys etc.

I missed that on first read; sorry.

I'll see what additional info I can gather next time I'm near the store
where this demo machine is, probably later this afternoon.

I ran very short of time and so wasn't able to capture any detailed
information, but I can confirm that my test system crashes when some of
the 'special' keys are pressed (though many of them don't cause a
crash).  I can't tell whether pulling the power cable causes a crash;
the system went totally dead when I did this (perhaps they've removed
the battery for some reason).

More info when I can get it.

Dave

-- 
Dave Anderson
d...@daveanderson.com