| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
resource - the layout of cprd_port is identical but using cprd_mem
makes the code easier to understand.
PR: kern/118493
Submitted by: Weongyo Jeong <weongyo.jeong at gmail.com>
MFC after: 3 days
Notes:
svn path=/head/; revision=218985
|
|
|
|
|
|
|
|
|
| |
PR: bin/154928
Submitted by: Eitan Adler <lists at eitanadler.com>
MFC after: 3 days
Notes:
svn path=/head/; revision=218909
|
|
|
|
| |
Notes:
svn path=/head/; revision=217566
|
|
|
|
|
|
|
|
|
|
|
|
| |
the original amd64 and i386 headers with stubs.
Rename (AMD64|I386)_BUS_SPACE_* to X86_BUS_SPACE_* everywhere.
Reviewed by: imp (previous version), jhb
Approved by: kib (mentor)
Notes:
svn path=/head/; revision=216592
|
|
|
|
|
|
|
|
|
| |
newer Ralink drivers.
Submitted by: Paul B Mahol <onemda at gmail.com>
Notes:
svn path=/head/; revision=216242
|
|
|
|
|
|
|
|
|
|
|
| |
With that change the Atheros 9xxx driver is actually usable and does not
panic anymore.
Submitted by: Paul B Mahol <onemda at gmail.com>
MFC after: 2 weeks
Notes:
svn path=/head/; revision=216050
|
|
|
|
|
|
|
|
|
|
|
| |
driver for example requests the NetCfgInstanceId but doesn't check the
returned status code and will happily access random memory instead.
Submitted by: Paul B Mahol <onemda at gmail.com>
MFC after: 2 weeks
Notes:
svn path=/head/; revision=216049
|
|
|
|
| |
Notes:
svn path=/head/; revision=215782
|
|
|
|
|
|
|
|
|
| |
here.
Submitted by: Paul B Mahol <onemda@gmail.com>
Notes:
svn path=/head/; revision=215779
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Many drivers on amd64 are picking system uptime, interrupt time and ticks
via global data structure instead of calling functions for performance
reasons. For now just patch such address so driver will not trigger page
fault when trying to access such data. In future, additional callout may
be added to update data in periodic intervals.
- On amd64 we need to allocate "shadow space" on stack before calling any
function.
Submitted by: Paul B Mahol <onemda at gmail.com>
Notes:
svn path=/head/; revision=215708
|
|
|
|
|
|
|
|
|
|
| |
According to the comment for MmIsAddressValid() there are issues on PAE
kernels using pmap_kextract().
Submitted by: Paul B Mahol <onemda at gmail.com>
Notes:
svn path=/head/; revision=215707
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
and MmAllocateContiguousMemorySpecifyCache().
Those two functions take 64-bit variable(s) for their arguments. On i386
that takes additional 32-bit variable per argument. This is required so
that windrv_wrap() can correctly wrap function that miniport driver calls
with stdcall convention. Similar explanation is provided in subr_ndis.c for
other functions.
Submitted by: Paul B Mahol <onemda at gmail.com>
Notes:
svn path=/head/; revision=215420
|
|
|
|
|
|
|
| |
Pointed out by: alc
Notes:
svn path=/head/; revision=215419
|
|
|
|
|
|
|
|
|
| |
contiguous memory with requested restrictions must be allocated.
Submitted by: Paul B Mahol <onemda at gmail.com>
Notes:
svn path=/head/; revision=215135
|
|
|
|
|
|
|
| |
Submitted by: Paul B Mahol <onemda at gmail.com>
Notes:
svn path=/head/; revision=214798
|
|
|
|
|
|
|
| |
Submitted by: Paul B Mahol
Notes:
svn path=/head/; revision=213461
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Clang generates the following warnings when building subr_usbd.c:
| subr_usbd.c:598:13: warning: promoted type 'int' of K&R function
| parameter is not compatible with the parameter type 'uint8_t' (aka
| 'unsigned char') declared in a previous prototype
| subr_usbd.c:627:13: warning: promoted type 'int' of K&R function
| parameter is not compatible with the parameter type 'uint8_t' (aka
| 'unsigned char') declared in a previous prototype
| subr_usbd.c:649:13: warning: promoted type 'int' of K&R function
| parameter is not compatible with the parameter type 'uint8_t' (aka
| 'unsigned char') declared in a previous prototype
Instead of just ANSIfying these three prototypes, do it for the entire
file.
Spotted by: clang
Notes:
svn path=/head/; revision=209102
|
|
|
|
| |
Notes:
svn path=/head/; revision=198819
|
|
|
|
|
|
|
| |
Spotted by: danfe
Notes:
svn path=/head/; revision=198816
|
|
|
|
|
|
|
|
|
| |
older than 6.0.
Submitted by: Paul B Mahol <onemda at gmail.com>
Notes:
svn path=/head/; revision=198786
|
|
|
|
|
|
|
|
|
| |
request whose body has some datas through the default pipe.
Tested by: Nikos Vassiliadis <nvass9573 at gmx.com>
Notes:
svn path=/head/; revision=195031
|
|
|
|
|
|
|
| |
while I am here.
Notes:
svn path=/head/; revision=194682
|
|
|
|
|
|
|
| |
- Reduce the number of headers needed for a usb driver, the common case is just usb.h and usbdi.h
Notes:
svn path=/head/; revision=194677
|
|
|
|
| |
Notes:
svn path=/head/; revision=194228
|
|
|
|
|
|
|
| |
usb_pipe may be used for a different purpose later on.
Notes:
svn path=/head/; revision=193644
|
|
|
|
| |
Notes:
svn path=/head/; revision=193045
|
|
|
|
| |
Notes:
svn path=/head/; revision=192984
|
|
|
|
| |
Notes:
svn path=/head/; revision=192692
|
|
|
|
|
|
|
|
| |
Found with: Coverity Prevent(tm)
CID: 1167
Notes:
svn path=/head/; revision=192090
|
|
|
|
|
|
|
|
|
| |
Found with: Coverity Prevent(tm)
CID: 371
MFC after: 2 weeks
Notes:
svn path=/head/; revision=192036
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- make usb2_power_mask_t 16-bit
- remove "usb2_config_sub" structure from "usb2_config". To compensate for this
"usb2_config" has a new field called "usb_mode" which select for which mode
the current xfer entry is active. Options are: a) Device mode only b) Host
mode only (default-by-zero) c) Both modes. This change was scripted using
the following sed script: "s/\.mh\././g".
- the standard packet size table in "usb_transfer.c" is now a function, hence
the code for the function uses less memory than the table itself.
Submitted by: Hans Petter Selasky
Notes:
svn path=/head/; revision=190734
|
|
|
|
|
|
|
|
|
|
| |
or URB_FUNCTION_CLASS_xxx with HAL preemption lock that means it's
non-sleepable during USB requests though usb2_do_request() requires a
sleep so it needs to send queries to the default pipe without those
interfaces to avoid sleep.
Notes:
svn path=/head/; revision=189950
|
|
|
|
|
|
|
|
|
| |
whatever the IRP flag is because some drivers (eg. RTL8187L NDIS driver)
call IoCompleteRequest() without setting flags. It will prevent waiting
a event forever at attach.
Notes:
svn path=/head/; revision=189942
|
|
|
|
|
|
|
| |
happened in the previous.
Notes:
svn path=/head/; revision=189917
|
|
|
|
|
|
|
|
|
| |
accessing structures directly to check some invalid descriptors.
Pointed by: hps
Notes:
svn path=/head/; revision=189874
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Based on the HAL preemption lock there is a problem on SMP machines
and causes a panic.
o When a device detached the current tactic to detach NDIS USB driver is
to call SURPRISE_REMOVED event. So it don't need to call
ndis_halt_nic() again. This fixes some page faults when some drivers
work abnormal.
o it assumes now that URB_FUNCTION_BULK_OR_INTERRUPT_TRANSFER is in
DISPATCH_LEVEL (non-sleepable) and as further work
URB_FUNCTION_VENDOR_XXX and URB_FUNCTION_CLASS_XXX should be.
Reviewed by: Hans Petter Selasky <hselasky_at_freebsd.org>
Tested by: Paul B. Mahol <onemda_at_gmail.com>
Notes:
svn path=/head/; revision=189719
|
|
|
|
|
|
|
|
|
|
|
|
| |
o implement URB_FUNCTION_ABORT_PIPE handling.
o remove unused code related with canceling the timer list for USB
drivers.
o whitespace cleanup and style(9)
Obtained from: hps's original patch
Notes:
svn path=/head/; revision=189488
|
|
|
|
|
|
|
|
|
|
|
| |
to int rule. See ISO C Standard: SS6.7.5.3:15.
Approved by: kib (mentor)
Reviewed by: warner
Tested by: silence on -current
Notes:
svn path=/head/; revision=189004
|
|
|
|
|
|
|
|
|
|
| |
new USB2 stack will fully replace this for 8.0.
Remove kernel modules, a subsequent commit will update conf/files. Unhook
usbdevs from the build.
Notes:
svn path=/head/; revision=188939
|
|
|
|
|
|
|
|
|
| |
for moving between a segment register and a 32-bit memory location.
Looked at by: jhb
Notes:
svn path=/head/; revision=187948
|
|
|
|
|
|
|
|
|
|
| |
Found with: Coverity Prevent(tm)
CID: 542
Approved by: weongyo
Notes:
svn path=/head/; revision=186540
|
|
|
|
|
|
|
|
| |
handled as `struct ndis_softc'. It'll cause a panic when the driver is
detached.
Notes:
svn path=/head/; revision=186509
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Now the NDISulator supports NDIS USB drivers that it've tested with
devices as follows:
- Anygate XM-142 (Conexant)
- Netgear WG111v2 (Realtek)
- U-Khan UW-2054u (Marvell)
- Shuttle XPC Accessory PN20 (Realtek)
- ipTIME G054U2 (Ralink)
- UNiCORN WL-54G (ZyDAS)
- ZyXEL G-200v2 (ZyDAS)
All of them succeeded to attach and worked though there are still some
problems that it's expected to be solved.
To use NDIS USB support, you should rebuild and install ndiscvt(8) and
if you encounter a problem to attach please set `hw.ndisusb.halt' to
0 then retry.
I expect no changes of the NDIS code for PCI, PCMCIA devices.
Obtained from: //depot/projects/ndisusb/...
Notes:
svn path=/head/; revision=186507
|
|
|
|
|
|
|
| |
Submitted by: Hans Petter Selasky
Notes:
svn path=/head/; revision=183003
|
|
|
|
|
|
|
|
|
| |
was always curthread and totally unuseful.
Tested by: Giovanni Trematerra <giovanni dot trematerra at gmail dot com>
Notes:
svn path=/head/; revision=182371
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
return NDIS_STATUS_PENDING. In this case, it's waiting for 5 secs to
get the response from drivers now. However, some NDIS drivers can send
the response before NDIS framework gets ready to receive it so we might
always be blocked for 5 secs in current implementation. NDIS framework
should reset the event before calling NDIS driver's callback not after.
MFC after: 1 month
Notes:
svn path=/head/; revision=180754
|
|
|
|
|
|
|
|
|
|
|
| |
a simple stub that always returns STATUS_SUCCESS.
Submitted by: Paul B. Mahol <onemda@gmail.com>
Reviewed by: thompsa
MFC after: 1 week
Notes:
svn path=/head/; revision=179806
|
|
|
|
|
|
|
|
| |
when NDIS driver's initialization is failed and NDIS driver's trying to
call NdisWriteErrorLogEntry().
Notes:
svn path=/head/; revision=179720
|
|
|
|
|
|
|
|
|
|
| |
can be < 0. We don't ignore a `increment' argument but at least we keep
a priority value of NDIS threads over PRI_MIN_KERN.
Reviewed by: thompsa
Notes:
svn path=/head/; revision=179423
|
|
|
|
|
|
|
|
|
|
| |
it try to read network address through ifnet structure which is NULL
until the ndis driver's initialization is finished.
Reviewed by: thompsa
Notes:
svn path=/head/; revision=179009
|