<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 2016-Feb-9 11:45 , BALATON Zoltan
wrote:<br>
</div>
<blockquote
cite="mid:alpine.BSF.2.20.1602091744340.59375@zero.eik.bme.hu"
type="cite">On Tue, 9 Feb 2016, BALATON Zoltan wrote:
<br>
<blockquote type="cite" style="color: #990000;">modem as well. Not
sure what should it say for just a serial port. Maybe none or
serial instead of modem.
<br>
</blockquote>
<br>
What if you just put four zero bytes in slot-names? But you may
still need working DMA added.
<br>
</blockquote>
<br>
I don't know if that works for Apple, but it shouldn't. From the PCI
binding:<br>
<br>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<div class="page" title="Page 16">
<div class="layoutArea">
<div class="column">
<blockquote>
<p><span style="font-size: 9.000000pt; font-family:
'Courier'; font-weight: 700">"slot-names" </span><span
style="font-size: 10.000000pt; font-family: 'Times'">S
</span><span style="font-size: 9.000000pt; font-family:
'Times'; font-style: italic">prop-name</span><span
style="font-size: 9.000000pt; font-family: 'Times'">,
describes external labeling of add-in slots.
</span></p>
<p><span style="font-size: 9.000000pt; font-family: 'Times';
font-style: italic">prop-encoded-array</span><span
style="font-size: 9.000000pt; font-family: 'Times'">: An
integer, encoded as with </span><span style="font-size:
9.000000pt; font-family: 'Courier'; font-weight: 700">encode-int</span><span
style="font-size: 9.000000pt; font-family: 'Times'">,
followed by a list of strings, each encoded as with </span><span
style="font-size: 9.000000pt; font-family: 'Courier';
font-weight: 700">encode-string</span><span
style="font-size: 9.000000pt; font-family: 'Times'">.
</span></p>
<p><span style="font-size: 9.000000pt; font-family: 'Times'">The
integer portion of the property value is a bitmask of
available slots; for each add-in slot on the bus, the
bit corresponding to that slot's Device Number is set.
The least-significant bit corresponds to Device Number
0, the next bit corresponds
to Device Number 1, etc. The number of following strings
is the same as the number of slots; the first string
gives the
label that is printed on the chassis for the slot with
the smallest Device Number, and so on.<br>
<br>
</span></p>
</blockquote>
That is, the first four bytes are supposed to be an integer
(in binary) indicating how many names follow, each name
null-terminated. The usual case for this properly is that you
see 0x00, 0x00, 0x00, 0x01, <string>, 0x00.<br>
<br>
</div>
</div>
</div>
<title></title>
</body>
</html>