PCIE device on Laptop

Hi
I have a request from customers to use the PCIE device (I wrote a driver for) on laptop.
I’m looking a simplest way (I mean to develop time) to make it possible.

The only fantasy comes to mind is to have an adapter USB-PCI or express card -PCI , such that I need only to port the PCIE driver to USB or express card driver (that is actually to rewrite the driver - not the simplest thing of course).

I’ll appreciate any idea.

Usually you write driver for specified device (spec defines PCI BARs, interrupts, device registers…). You can see Microsoft PCI sample driver:
https://github.com/Microsoft/Windows-driver-samples/tree/master/general/pcidrv

Regards,
Adam
www.fractaldrivers.com

> Hi

I have a request from customers to use the PCIE device (I wrote a driver for)
on laptop.
I’m looking a simplest way (I mean to develop time) to make it possible.

The only fantasy comes to mind is to have an adapter USB-PCI or express
card -PCI , such that I need only to port the PCIE driver to USB or express card
driver (that is actually to rewrite the driver - not the simplest thing of course).

I believe that express card slots include PCI(e?) connectivity (at least as an option). Anyway, there are many products that give you PCIE out of an Express Card port.

From the Wikipedia entry for express card:

“The host device supports PCI Express, USB 2.0 (including Hi-Speed), and USB 3.0 (SuperSpeed)”

One example below.

http://www.hwtools.net/Adapter/PE4L%20V2.1.html

* Bob

? Bob Ammerman
RAm Systems

I’ll appreciate any idea.


NTDEV is sponsored by OSR

Visit the list online at:
http:
>
> MONTHLY seminars on crash dump analysis, WDF, Windows internals and
> software drivers!
> Details at http:
>
> To unsubscribe, visit the List Server section of OSR Online at
> http:</http:></http:></http:>

Thunderbolt is pci based on the other end of the cable

Sent from my Windows 10 phone

From: xxxxx@hotmail.commailto:xxxxx
Sent: Monday, June 13, 2016 5:14 AM
To: Windows System Software Devs Interest Listmailto:xxxxx
Subject: [ntdev] PCIE device on Laptop

Hi
I have a request from customers to use the PCIE device (I wrote a driver for) on laptop.
I’m looking a simplest way (I mean to develop time) to make it possible.

The only fantasy comes to mind is to have an adapter USB-PCI or express card -PCI , such that I need only to port the PCIE driver to USB or express card driver (that is actually to rewrite the driver - not the simplest thing of course).

I’ll appreciate any idea.


NTDEV is sponsored by OSR

Visit the list online at: http:

MONTHLY seminars on crash dump analysis, WDF, Windows internals and software drivers!
Details at http:

To unsubscribe, visit the List Server section of OSR Online at http:</http:></http:></http:></mailto:xxxxx></mailto:xxxxx>

Bob, thanks.
actually I saw the Bplus solution before. it is still not clear for me.
I’m still not sure that I will not need to re-write my driver. because in past, the PCMCIA drivers != PCI drivers.
I’ll try to be more clear.
What I see on device manager after I’ll connect the express card PCIE adapter ?
If I can see my PCIE device , that means I don;t need to do anything. all will work as is.
If I will see PCMCIA device that means I need to do some work to make my current driver to work with it.

> Bob, thanks.

actually I saw the Bplus solution before. it is still not clear for me.
I’m still not sure that I will not need to re-write my driver. because in past,
the PCMCIA drivers != PCI drivers.
I’ll try to be more clear.
What I see on device manager after I’ll connect the express card PCIE adapter

The interface inside the computer to the ExpressCard is both PCIeX1 and USB 2.0 (and USB 3.0 for ExpressCard 2.0). If you can physically connect your PCIe device to the express card slot, your driver might just work unchanged! I think the BPlus product (and others like it) just brings the PCIe interface out of the computer (maybe it contains a PCIe bridge?).

I am pretty sure that if you could jam your device into an ExpressCard that it would just work without the need for the BPLus product.

NOTE: ExpressCard is not your father’s PCMCIA, it is a completely different beast. PCMCIA basically brings out the ISA bus, ExpressCard the PCIe.X1 and USB buses.

NOTE 2: All of the above is my understanding, that doesn’t make it right :slight_smile:

– Bob

Bob Ammerman
RAm Systems

APPENDIX:

Here is the ExpressCard pinout, as found at http://www.interfacebus.com/Design_Connector_ExpressCard_Bus.html:

ExpressCard Connector Pin Out (sure looks like PCI express to me):

Pin # Signal name Pin Function
1 GND Ground, Return current path
2 USB D- Data line
3 USB D+ Data line
4 CP USB Card inserted
5 RSVD0 Reserved
6 RSVD0 Reserved
7 SMB CLK SMB Interface Clock
8 SMB DATA SMB Interface Data
9 1.5V Power
10 1.5V Power
11 WAKE # Request the host interface return to full operation
12 +3.3VAUX Power, Auxiliary voltage source
13 PERST# PCIe Reset
14 +3.3V Power
15 +3.3V Power
16 CLKREQ# Request that REFCLK be enabled
17 GND Ground, Return current path
18 REFCLK- PCI Express reference clock
19 REFCLK+ PCI Express reference clock
20 GND Ground, Return current path
21 PER0- PCI Express x1 interface, Input/Output
22 PER0+ PCI Express x1 interface, Input/Output
23 GND Ground, Return current path
24 PET0- PCI Express x1 interface, Input/Output
25 PET0+ PCI Express x1 interface, Input/Output
26 GND Ground, Return current path

Thank you guys,
Thunderbolt direction is interesting. seems like better solution because all modern comps have it.

Doron, If it is based PCI, that means all I need is Thunderbolt cable that ends with mini PCIE connector, that will be connected directly to my PCIE device, isn’t it ?

thank you.

I don?t know enough about the connectors to answer, but you have to get the answer for your self now

Sent from my Windows 10 phone

From: xxxxx@hotmail.commailto:xxxxx
Sent: Monday, June 13, 2016 6:27 AM
To: Windows System Software Devs Interest Listmailto:xxxxx
Subject: RE:[ntdev] PCIE device on Laptop

Thank you guys,
Thunderbolt direction is interesting. seems like better solution because all modern comps have it.

Doron, If it is based PCI, that means all I need is Thunderbolt cable that ends with mini PCIE connector, that will be connected directly to my PCIE device, isn’t it ?

thank you.


NTDEV is sponsored by OSR

Visit the list online at: http:

MONTHLY seminars on crash dump analysis, WDF, Windows internals and software drivers!
Details at http:

To unsubscribe, visit the List Server section of OSR Online at http:</http:></http:></http:></mailto:xxxxx></mailto:xxxxx>

xxxxx@hotmail.com wrote:

Thunderbolt direction is interesting. seems like better solution because all modern comps have it.

Oh? I have certainly not found that to be the case. Some computers do,
and certainly all current Apple computers do, although Apple’s next
generation is going exclusively to USB-C.

Doron, If it is based PCI, that means all I need is Thunderbolt cable that ends with mini PCIE connector, that will be connected directly to my PCIE device, isn’t it ?

I have heard horror stories about Thunderbolt, although I don’t have
direct experience myself. Does your device already have an external
PCIe connector?


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

No bridge, the mini-pcie to pcie slot BPlus products are just connectors and cables. I have a couple of them. They also will not exactly physically be a clean solution for laptop users, but are a useful development/prototyping device.

An ExpressCard to PCIe slot adapter would be more viable for end users, although ExpressCard interfaces on laptops are becoming pretty rare. Like Doron said, Thunderbolt is basically PCIe on the external end, and I believe you can buy Thunderbolt to PCIe slot adapters. In theory, no driver changes would be required for a Thunderbolt to slot adapter, as it just looks like bridges to software.

Converting a PCIe device to USB would be a very significant hardware and driver change.

Jan

On 6/13/16, 6:17 AM, “xxxxx@lists.osr.com on behalf of Robert Ammerman” wrote:

> BPlus product (and others like it) just brings the PCIe interface out of the computer (maybe it contains a PCIe bridge?).

Agreed. I think going forward, you are going to have better luck finding a Type C port that supports Thunderbolt as an alternate mode (at least on Intel systems) than a system with traditional thunderbolt connector or even a system with any other external PCI slot. Therefore if you really need your PCI device to work with PCs, thunderbolt on type C is probably your best bet. Of-course, it is nowhere as ubiquitous as USB. Stating the obvious but if you want your device to work across a wide range of PCs, USB is really the only option, at least today.

Subject: Re: [ntdev] PCIE device on Laptop
To: xxxxx@lists.osr.com
From: xxxxx@probo.com
Date: Mon, 13 Jun 2016 09:51:55 -0700

xxxxx@hotmail.com wrote:
> Thunderbolt direction is interesting. seems like better solution because all modern comps have it.

Oh? I have certainly not found that to be the case. Some computers do,
and certainly all current Apple computers do, although Apple’s next
generation is going exclusively to USB-C.

> Doron, If it is based PCI, that means all I need is Thunderbolt cable that ends with mini PCIE connector, that will be connected directly to my PCIE device, isn’t it ?

I have heard horror stories about Thunderbolt, although I don’t have
direct experience myself. Does your device already have an external
PCIe connector?


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.


NTDEV is sponsored by OSR

Visit the list online at: http:
>
> MONTHLY seminars on crash dump analysis, WDF, Windows internals and software drivers!
> Details at http:
>
> To unsubscribe, visit the List Server section of OSR Online at http:</http:></http:></http:>

This, and from people who know.

It’s an architecture that LOOKS superficially attractive, but when one delves into how it actually works, it’s not necessarily very pretty. And, to work *really* properly, it needs deep rooted support form the OS (and which is not there in any current version of Windows).

Peter
OSR
@OSRDrivers