$ uname -a
SunOS virtualbox-sxce 5.11 snv_129 i86pc i386 i86pc
$ cfgadm -l
Ap_Id                          Type         Receptacle   Occupant     Condition
sata0/0::dsk/c1t0d0            disk         connected    configured   ok
sata0/1::dsk/c1t1d0            disk         connected    configured   ok
sata0/2::dsk/c1t2d0            disk         connected    configured   ok

Or you can probably dig it out of prtpicl -v output, but that has so much
other stuff in it that I doubt you'd want to.

I attached the part of the prtpicl -v output for me (running SXCE snv_129
under VirtualBox with three emulated SATA drives) starting with
the controller and including the drives.  If you look at the target for
those, that seems to match up to the SATA port I'd assigned.
(only the first is in use right now; the other two were older images
that I'd attached to let me dig some old stuff out that I still wanted)

If you looked for something sort of similar (it's a tree, with each deeper
level indented further), you might find what you're after.
-- 
This message posted from opensolaris.org
             pci8086,2829 (obp-device, f0000001ec)
              :DeviceID  0xd 
              :UnitAddress       0 
              :device-id         0x2829 
              :vendor-id         0x8086 
              :revision-id       0x2 
              :class-code        0x10601 
              :unit-address      d 
              :min-grant         0 
              :max-latency       0 
              :interrupts        0x1 
              :devsel-speed      0 
              :power-consumption         01  00  00  00  01  00  00  00 
              :model     SATA AHCI 1.0 Interface 
              :compatible       (f000000200TBL) 
               | pci8086,2829.2 |
               | pci8086,2829 |
               | pciclass,010601 |
               | pciclass,0106 |
              :reg      
 00  68  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00 
 10  68  00  01  00  00  00  00  00  00  00  00  00  00  00  00  08  00  00  00 
 14  68  00  01  00  00  00  00  00  00  00  00  00  00  00  00  02  00  00  00 
 18  68  00  01  00  00  00  00  00  00  00  00  00  00  00  00  08  00  00  00 
 1c  68  00  01  00  00  00  00  00  00  00  00  00  00  00  00  02  00  00  00 
 20  68  00  01  00  00  00  00  00  00  00  00  00  00  00  00  10  00  00  00 
 24  68  00  02  00  00  00  00  00  00  00  00  00  00  00  00  00  20  00  00 
              :assigned-addresses       
 10  68  00  81  00  00  00  00  40  d2  00  00  00  00  00  00  08  00  00  00 
 14  68  00  81  00  00  00  00  48  d2  00  00  00  00  00  00  02  00  00  00 
 18  68  00  81  00  00  00  00  50  d2  00  00  00  00  00  00  08  00  00  00 
 1c  68  00  81  00  00  00  00  58  d2  00  00  00  00  00  00  02  00  00  00 
 20  68  00  81  00  00  00  00  60  d2  00  00  00  00  00  00  10  00  00  00 
 24  68  00  82  00  00  00  00  00  40  80  f0  00  00  00  00  00  20  00  00 
              :scsi-enumeration  0 
              :scsi-options      0x107ff8 
              :scsi-reset-delay  0xbb8 
              :scsi-watchdog-tick        0xa 
              :scsi-selection-timeout    0xfa 
              :scsi-tag-age-limit        0x2 
              :initiator-interconnect-type       SPI 
              :scsi-binding-set  spi 
              :sata      0x1 
              :devfs-path        /p...@0,0/pci8086,2...@d 
              :driver-name       ahci 
              :binding-name      pciclass,010601 
              :bus-addr  d 
              :instance  0 
              :_class    obp-device 
              :name      pci8086,2829 
                 disk (block, f000000210)
                  :device-type   scsi 
                  :target        0 
                  :lun   0 
                  :compatible   (f00000022cTBL) 
                   | scsiclass,00.vATA.pVBOX_HARDDISK.r1_0 |
                   | scsiclass,00.vATA.pVBOX_HARDDISK |
                   | scsiclass,00 |
                   | scsiclass |
                  :class         scsi 
                  :inquiry-vendor-id     VBOX 
                  :inquiry-product-id    HARDDISK 
                  :inquiry-revision-id   1.0 
                  :inquiry-device-type   0 
                  :devid         
id1,s...@sata_____vbox_harddisk____vb3630b4a7-86611be5 
                  :device-blksize        0x200 
                  :pm-capable    0x30006 
                  :fm-ereport-capable
                  :ddi-kernel-ioctl
                  :ddi-failfast-supported
                  :pm-hardware-state     needs-suspend-resume 
                  :pm-components        (f00000021bTBL) 
                   | NAME=spindle-motor |
                   | 0=off |
                   | 1=on |
                  :lba-access-ok
                  :inquiry-serial-no     VB3630b4a7-86611be5 
                  :devfs-path    /p...@0,0/pci8086,2...@d/d...@0,0 
                  :driver-name   sd 
                  :binding-name  scsiclass,00 
                  :bus-addr      0,0 
                  :instance      0 
                  :_class        block 
                  :name  disk 
                 disk (block, f000000234)
                  :device-type   scsi 
                  :target        0x1 
                  :lun   0 
                  :compatible   (f000000250TBL) 
                   | scsiclass,00.vATA.pVBOX_HARDDISK.r1_0 |
                   | scsiclass,00.vATA.pVBOX_HARDDISK |
                   | scsiclass,00 |
                   | scsiclass |
                  :class         scsi 
                  :inquiry-vendor-id     VBOX 
                  :inquiry-product-id    HARDDISK 
                  :inquiry-revision-id   1.0 
                  :inquiry-device-type   0 
                  :devid         
id1,s...@sata_____vbox_harddisk____vb86e78567-19ea32c1 
                  :device-blksize        0x200 
                  :pm-capable    0x30006 
                  :fm-ereport-capable
                  :ddi-kernel-ioctl
                  :ddi-failfast-supported
                  :pm-hardware-state     needs-suspend-resume 
                  :pm-components        (f00000023fTBL) 
                   | NAME=spindle-motor |
                   | 0=off |
                   | 1=on |
                  :lba-access-ok
                  :inquiry-serial-no     VB86e78567-19ea32c1 
                  :devfs-path    /p...@0,0/pci8086,2...@d/d...@1,0 
                  :driver-name   sd 
                  :binding-name  scsiclass,00 
                  :bus-addr      1,0 
                  :instance      2 
                  :_class        block 
                  :name  disk 
                 disk (block, f000000258)
                  :device-type   scsi 
                  :target        0x2 
                  :lun   0 
                  :compatible   (f000000274TBL) 
                   | scsiclass,00.vATA.pVBOX_HARDDISK.r1_0 |
                   | scsiclass,00.vATA.pVBOX_HARDDISK |
                   | scsiclass,00 |
                   | scsiclass |
                  :class         scsi 
                  :inquiry-vendor-id     VBOX 
                  :inquiry-product-id    HARDDISK 
                  :inquiry-revision-id   1.0 
                  :inquiry-device-type   0 
                  :devid         
id1,s...@sata_____vbox_harddisk____vb9088d2f2-000dab9d 
                  :device-blksize        0x200 
                  :pm-capable    0x30006 
                  :fm-ereport-capable
                  :ddi-kernel-ioctl
                  :ddi-failfast-supported
                  :pm-hardware-state     needs-suspend-resume 
                  :pm-components        (f000000263TBL) 
                   | NAME=spindle-motor |
                   | 0=off |
                   | 1=on |
                  :lba-access-ok
                  :inquiry-serial-no     VB9088d2f2-000dab9d 
                  :devfs-path    /p...@0,0/pci8086,2...@d/d...@2,0 
                  :driver-name   sd 
                  :binding-name  scsiclass,00 
                  :bus-addr      2,0 
                  :instance      3 
                  :_class        block 
                  :name  disk 
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Reply via email to