1 #
   2 # CDDL HEADER START
   3 #
   4 # The contents of this file are subject to the terms of the
   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 #
  22 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  23 # Copyright 2013, Joyent, Inc. All rights reserved.
  24 # Copyright 2013 Garrett D'Amore <garrett@damore.org>
  25 # Copyright 2015 Nexenta Systems, Inc. All rights reserved.
  26 #
  27 
  28 include $(SRC)/uts/Makefile.uts
  29 
  30 FILEMODE=644
  31 
  32 #
  33 #       Note that the following headers are present in the kernel but
  34 #       neither installed or shipped as part of the product:
  35 #               cpuid_drv.h:            Private interface for cpuid consumers
  36 #               unix_bb_info.h:         Private interface to kcov
  37 #
  38 
  39 i386_HDRS=                      \
  40         agp/agpamd64gart_io.h   \
  41         agp/agpdefs.h           \
  42         agp/agpgart_impl.h      \
  43         agp/agpmaster_io.h      \
  44         agp/agptarget_io.h      \
  45         agpgart.h               \
  46         asy.h                   \
  47         fd_debug.h              \
  48         fdc.h                   \
  49         fdmedia.h               \
  50         mouse.h                 \
  51         ucode.h
  52 
  53 sparc_HDRS=                     \
  54         mouse.h                 \
  55         scsi/targets/ssddef.h   \
  56         $(MDESCHDRS)
  57 
  58 # Generated headers
  59 GENHDRS=                        \
  60         priv_const.h            \
  61         priv_names.h            \
  62         usb/usbdevs.h
  63 
  64 CHKHDRS=                        \
  65         acpi_drv.h              \
  66         acct.h                  \
  67         acctctl.h               \
  68         acl.h                   \
  69         acl_impl.h              \
  70         aggr.h                  \
  71         aggr_impl.h             \
  72         aio.h                   \
  73         aio_impl.h              \
  74         aio_req.h               \
  75         aiocb.h                 \
  76         ascii.h                 \
  77         asynch.h                \
  78         atomic.h                \
  79         attr.h                  \
  80         audio.h                 \
  81         audioio.h               \
  82         autoconf.h              \
  83         auxv.h                  \
  84         auxv_386.h              \
  85         auxv_SPARC.h            \
  86         avl.h                   \
  87         avl_impl.h              \
  88         bitmap.h                \
  89         bitset.h                \
  90         bl.h                    \
  91         blkdev.h                \
  92         bofi.h                  \
  93         bofi_impl.h             \
  94         bpp_io.h                \
  95         bootstat.h              \
  96         brand.h                 \
  97         buf.h                   \
  98         bufmod.h                \
  99         bustypes.h              \
 100         byteorder.h             \
 101         callb.h                 \
 102         callo.h                 \
 103         cap_util.h              \
 104         cpucaps.h               \
 105         cpucaps_impl.h          \
 106         ccompile.h              \
 107         cdio.h                  \
 108         cladm.h                 \
 109         class.h                 \
 110         clconf.h                \
 111         clock_impl.h            \
 112         cmlb.h                  \
 113         cmn_err.h               \
 114         compress.h              \
 115         condvar.h               \
 116         condvar_impl.h          \
 117         conf.h                  \
 118         consdev.h               \
 119         console.h               \
 120         consplat.h              \
 121         vt.h                    \
 122         vtdaemon.h              \
 123         kd.h                    \
 124         contract.h              \
 125         contract_impl.h         \
 126         copyops.h               \
 127         core.h                  \
 128         corectl.h               \
 129         cpc_impl.h              \
 130         cpc_pcbe.h              \
 131         cpr.h                   \
 132         cpupart.h               \
 133         cpuvar.h                \
 134         crc32.h                 \
 135         cred.h                  \
 136         cred_impl.h             \
 137         crtctl.h                \
 138         cryptmod.h              \
 139         csiioctl.h              \
 140         ctf.h                   \
 141         ctfs.h                  \
 142         ctfs_impl.h             \
 143         ctf_api.h               \
 144         ctype.h                 \
 145         cyclic.h                \
 146         cyclic_impl.h           \
 147         dacf.h                  \
 148         dacf_impl.h             \
 149         damap.h                 \
 150         damap_impl.h            \
 151         dc_ki.h                 \
 152         ddi.h                   \
 153         ddifm.h                 \
 154         ddifm_impl.h            \
 155         ddi_hp.h                \
 156         ddi_hp_impl.h           \
 157         ddi_intr.h              \
 158         ddi_intr_impl.h         \
 159         ddi_impldefs.h          \
 160         ddi_implfuncs.h         \
 161         ddi_obsolete.h          \
 162         ddi_periodic.h          \
 163         ddidevmap.h             \
 164         ddidmareq.h             \
 165         ddimapreq.h             \
 166         ddipropdefs.h           \
 167         dditypes.h              \
 168         debug.h                 \
 169         des.h                   \
 170         devctl.h                \
 171         devcache.h              \
 172         devcache_impl.h         \
 173         devfm.h                 \
 174         devid_cache.h           \
 175         devinfo_impl.h          \
 176         devops.h                \
 177         devpolicy.h             \
 178         devpoll.h               \
 179         dirent.h                \
 180         disp.h                  \
 181         dkbad.h                 \
 182         dkio.h                  \
 183         dklabel.h               \
 184         dl.h                    \
 185         dlpi.h                  \
 186         dld.h                   \
 187         dld_impl.h              \
 188         dld_ioc.h               \
 189         dls.h                   \
 190         dls_mgmt.h              \
 191         dls_impl.h              \
 192         dma_i8237A.h            \
 193         dnlc.h                  \
 194         door.h                  \
 195         door_data.h             \
 196         door_impl.h             \
 197         dtrace.h                \
 198         dtrace_impl.h           \
 199         dumpadm.h               \
 200         dumphdr.h               \
 201         ecppsys.h               \
 202         ecppio.h                \
 203         ecppreg.h               \
 204         ecppvar.h               \
 205         efi_partition.h         \
 206         elf.h                   \
 207         elf_386.h               \
 208         elf_SPARC.h             \
 209         elf_notes.h             \
 210         elf_amd64.h             \
 211         elftypes.h              \
 212         emul64.h                \
 213         emul64cmd.h             \
 214         emul64var.h             \
 215         epm.h                   \
 216         errno.h                 \
 217         errorq.h                \
 218         errorq_impl.h           \
 219         esunddi.h               \
 220         ethernet.h              \
 221         euc.h                   \
 222         eucioctl.h              \
 223         exacct.h                \
 224         exacct_catalog.h        \
 225         exacct_impl.h           \
 226         exec.h                  \
 227         exechdr.h               \
 228         extdirent.h             \
 229         fault.h                 \
 230         fasttrap.h              \
 231         fasttrap_impl.h         \
 232         fbio.h                  \
 233         fbuf.h                  \
 234         fcntl.h                 \
 235         fct.h                   \
 236         fct_defines.h           \
 237         fctio.h                 \
 238         fdbuffer.h              \
 239         fdio.h                  \
 240         feature_tests.h         \
 241         fem.h                   \
 242         file.h                  \
 243         filio.h                 \
 244         flock.h                 \
 245         flock_impl.h            \
 246         fork.h                  \
 247         fss.h                   \
 248         fsspriocntl.h           \
 249         fsid.h                  \
 250         fssnap.h                \
 251         fssnap_if.h             \
 252         fstyp.h                 \
 253         ftrace.h                \
 254         fx.h                    \
 255         fxpriocntl.h            \
 256         gfs.h                   \
 257         gld.h                   \
 258         gldpriv.h               \
 259         group.h                 \
 260         hdio.h                  \
 261         hook.h                  \
 262         hook_event.h            \
 263         hook_impl.h             \
 264         hwconf.h                \
 265         ia.h                    \
 266         iapriocntl.h            \
 267         ibpart.h                \
 268         id32.h                  \
 269         idmap.h                 \
 270         ieeefp.h                \
 271         id_space.h              \
 272         instance.h              \
 273         int_const.h             \
 274         int_fmtio.h             \
 275         int_limits.h            \
 276         int_types.h             \
 277         inttypes.h              \
 278         ioccom.h                \
 279         ioctl.h                 \
 280         ipc.h                   \
 281         ipc_impl.h              \
 282         ipc_rctl.h              \
 283         ipd.h                   \
 284         ipmi.h                  \
 285         isa_defs.h              \
 286         iscsi_authclient.h      \
 287         iscsi_authclientglue.h  \
 288         iscsi_protocol.h        \
 289         jioctl.h                \
 290         kbd.h                   \
 291         kbdreg.h                \
 292         kbio.h                  \
 293         kcpc.h                  \
 294         kdi.h                   \
 295         kdi_impl.h              \
 296         kiconv.h                \
 297         kiconv_big5_utf8.h      \
 298         kiconv_cck_common.h     \
 299         kiconv_cp950hkscs_utf8.h        \
 300         kiconv_emea1.h          \
 301         kiconv_emea2.h          \
 302         kiconv_euckr_utf8.h     \
 303         kiconv_euctw_utf8.h     \
 304         kiconv_gb18030_utf8.h   \
 305         kiconv_gb2312_utf8.h    \
 306         kiconv_hkscs_utf8.h     \
 307         kiconv_ja.h             \
 308         kiconv_ja_jis_to_unicode.h      \
 309         kiconv_ja_unicode_to_jis.h      \
 310         kiconv_ko.h             \
 311         kiconv_latin1.h         \
 312         kiconv_sc.h             \
 313         kiconv_tc.h             \
 314         kiconv_uhc_utf8.h       \
 315         kiconv_utf8_big5.h      \
 316         kiconv_utf8_cp950hkscs.h        \
 317         kiconv_utf8_euckr.h     \
 318         kiconv_utf8_euctw.h     \
 319         kiconv_utf8_gb18030.h   \
 320         kiconv_utf8_gb2312.h    \
 321         kiconv_utf8_hkscs.h     \
 322         kiconv_utf8_uhc.h       \
 323         kidmap.h                \
 324         klpd.h                  \
 325         klwp.h                  \
 326         kmdb.h                  \
 327         kmem.h                  \
 328         kmem_impl.h             \
 329         kobj.h                  \
 330         kobj_impl.h             \
 331         ksocket.h               \
 332         kstat.h                 \
 333         kstr.h                  \
 334         ksyms.h                 \
 335         ksynch.h                \
 336         ldterm.h                \
 337         lgrp.h                  \
 338         lgrp_user.h             \
 339         libc_kernel.h           \
 340         link.h                  \
 341         list.h                  \
 342         list_impl.h             \
 343         llc1.h                  \
 344         loadavg.h               \
 345         lock.h                  \
 346         lockfs.h                \
 347         lockstat.h              \
 348         lofi.h                  \
 349         log.h                   \
 350         logindmux.h             \
 351         logindmux_impl.h        \
 352         lwp.h                   \
 353         lwp_timer_impl.h        \
 354         lwp_upimutex_impl.h     \
 355         lpif.h                  \
 356         mac.h                   \
 357         mac_client.h            \
 358         mac_client_impl.h       \
 359         mac_ether.h             \
 360         mac_flow.h              \
 361         mac_flow_impl.h         \
 362         mac_impl.h              \
 363         mac_provider.h          \
 364         mac_soft_ring.h         \
 365         mac_stat.h              \
 366         machelf.h               \
 367         map.h                   \
 368         md4.h                   \
 369         md5.h                   \
 370         md5_consts.h            \
 371         mdi_impldefs.h          \
 372         mem.h                   \
 373         mem_config.h            \
 374         memlist.h               \
 375         mkdev.h                 \
 376         mhd.h                   \
 377         mii.h                   \
 378         miiregs.h               \
 379         mixer.h                 \
 380         mman.h                  \
 381         mmapobj.h               \
 382         mntent.h                \
 383         mntio.h                 \
 384         mnttab.h                \
 385         modctl.h                \
 386         mode.h                  \
 387         model.h                 \
 388         modhash.h               \
 389         modhash_impl.h          \
 390         mount.h                 \
 391         mouse.h                 \
 392         msacct.h                \
 393         msg.h                   \
 394         msg_impl.h              \
 395         msio.h                  \
 396         msreg.h                 \
 397         mtio.h                  \
 398         multidata.h             \
 399         multidata_impl.h        \
 400         mutex.h                 \
 401         nbmlock.h               \
 402         ndifm.h                 \
 403         ndi_impldefs.h          \
 404         net80211.h              \
 405         net80211_crypto.h       \
 406         net80211_ht.h           \
 407         net80211_proto.h        \
 408         netconfig.h             \
 409         neti.h                  \
 410         netstack.h              \
 411         nexusdefs.h             \
 412         note.h                  \
 413         nvpair.h                \
 414         nvpair_impl.h           \
 415         objfs.h                 \
 416         objfs_impl.h            \
 417         ontrap.h                \
 418         open.h                  \
 419         openpromio.h            \
 420         panic.h                 \
 421         param.h                 \
 422         pathconf.h              \
 423         pathname.h              \
 424         pattr.h                 \
 425         queue.h                 \
 426         serializer.h            \
 427         pbio.h                  \
 428         pccard.h                \
 429         pci.h                   \
 430         pcie.h                  \
 431         pci_impl.h              \
 432         pci_tools.h             \
 433         pcmcia.h                \
 434         pctypes.h               \
 435         pfmod.h                 \
 436         pg.h                    \
 437         pghw.h                  \
 438         physmem.h               \
 439         pkp_hash.h              \
 440         pm.h                    \
 441         policy.h                \
 442         poll.h                  \
 443         poll_impl.h             \
 444         pool.h                  \
 445         pool_impl.h             \
 446         pool_pset.h             \
 447         port.h                  \
 448         port_impl.h             \
 449         port_kernel.h           \
 450         portif.h                \
 451         ppmio.h                 \
 452         pppt_ic_if.h            \
 453         pppt_ioctl.h            \
 454         priocntl.h              \
 455         priv.h                  \
 456         priv_impl.h             \
 457         prnio.h                 \
 458         proc.h                  \
 459         processor.h             \
 460         procfs.h                \
 461         procset.h               \
 462         project.h               \
 463         protosw.h               \
 464         prsystm.h               \
 465         pset.h                  \
 466         pshot.h                 \
 467         ptem.h                  \
 468         ptms.h                  \
 469         ptyvar.h                \
 470         raidioctl.h             \
 471         ramdisk.h               \
 472         random.h                \
 473         rctl.h                  \
 474         rctl_impl.h             \
 475         rds.h                   \
 476         reboot.h                \
 477         refstr.h                \
 478         refstr_impl.h           \
 479         resource.h              \
 480         rlioctl.h               \
 481         rt.h                    \
 482         rtpriocntl.h            \
 483         rwlock.h                \
 484         rwlock_impl.h           \
 485         rwstlock.h              \
 486         sad.h                   \
 487         schedctl.h              \
 488         sdt.h                   \
 489         select.h                \
 490         sem.h                   \
 491         sem_impl.h              \
 492         sema_impl.h             \
 493         semaphore.h             \
 494         sendfile.h              \
 495         ser_sync.h              \
 496         session.h               \
 497         sha1.h                  \
 498         sha1_consts.h           \
 499         sha2.h                  \
 500         sha2_consts.h           \
 501         share.h                 \
 502         shm.h                   \
 503         shm_impl.h              \
 504         sid.h                   \
 505         siginfo.h               \
 506         signal.h                \
 507         sleepq.h                \
 508         smbios.h                \
 509         smbios_impl.h           \
 510         sobject.h               \
 511         socket.h                \
 512         socket_impl.h           \
 513         socket_proto.h          \
 514         socketvar.h             \
 515         sockfilter.h            \
 516         sockio.h                \
 517         soundcard.h             \
 518         squeue.h                \
 519         squeue_impl.h           \
 520         srn.h                   \
 521         sservice.h              \
 522         stat.h                  \
 523         statfs.h                \
 524         statvfs.h               \
 525         stdbool.h               \
 526         stdint.h                \
 527         stermio.h               \
 528         stmf.h                  \
 529         stmf_defines.h          \
 530         stmf_ioctl.h            \
 531         stmf_sbd_ioctl.h        \
 532         stream.h                \
 533         strft.h                 \
 534         strlog.h                \
 535         strmdep.h               \
 536         stropts.h               \
 537         strredir.h              \
 538         strstat.h               \
 539         strsubr.h               \
 540         strsun.h                \
 541         strtty.h                \
 542         sunddi.h                \
 543         sunldi.h                \
 544         sunldi_impl.h           \
 545         sunmdi.h                \
 546         sunndi.h                \
 547         sunos_dhcp_class.h      \
 548         sunpm.h                 \
 549         suntpi.h                \
 550         suntty.h                \
 551         swap.h                  \
 552         synch.h                 \
 553         sysdc.h                 \
 554         sysdc_impl.h            \
 555         syscall.h               \
 556         sysconf.h               \
 557         sysconfig.h             \
 558         sysevent.h              \
 559         sysevent_impl.h         \
 560         sysinfo.h               \
 561         syslog.h                \
 562         sysmacros.h             \
 563         sysmsg_impl.h           \
 564         systeminfo.h            \
 565         systm.h                 \
 566         task.h                  \
 567         taskq.h                 \
 568         taskq_impl.h            \
 569         t_kuser.h               \
 570         t_lock.h                \
 571         telioctl.h              \
 572         termio.h                \
 573         termios.h               \
 574         termiox.h               \
 575         thread.h                \
 576         ticlts.h                \
 577         ticots.h                \
 578         ticotsord.h             \
 579         tihdr.h                 \
 580         time.h                  \
 581         time_impl.h             \
 582         time_std_impl.h         \
 583         timeb.h                 \
 584         timer.h                 \
 585         times.h                 \
 586         timex.h                 \
 587         timod.h                 \
 588         tirdwr.h                \
 589         tiuser.h                \
 590         tl.h                    \
 591         tnf.h                   \
 592         tnf_com.h               \
 593         tnf_probe.h             \
 594         tnf_writer.h            \
 595         todio.h                 \
 596         tpicommon.h             \
 597         ts.h                    \
 598         tspriocntl.h            \
 599         ttcompat.h              \
 600         ttold.h                 \
 601         tty.h                   \
 602         ttychars.h              \
 603         ttydev.h                \
 604         tuneable.h              \
 605         turnstile.h             \
 606         types.h                 \
 607         types32.h               \
 608         tzfile.h                \
 609         u8_textprep.h           \
 610         u8_textprep_data.h      \
 611         uadmin.h                \
 612         ucred.h                 \
 613         uio.h                   \
 614         ulimit.h                \
 615         un.h                    \
 616         unistd.h                \
 617         user.h                  \
 618         ustat.h                 \
 619         utime.h                 \
 620         utsname.h               \
 621         utssys.h                \
 622         uuid.h                  \
 623         va_impl.h               \
 624         va_list.h               \
 625         var.h                   \
 626         varargs.h               \
 627         vfs.h                   \
 628         vfs_opreg.h             \
 629         vfstab.h                \
 630         vgareg.h                \
 631         videodev2.h             \
 632         visual_io.h             \
 633         vlan.h                  \
 634         vm.h                    \
 635         vm_usage.h              \
 636         vmem.h                  \
 637         vmem_impl.h             \
 638         vmsystm.h               \
 639         vnic.h                  \
 640         vnic_impl.h             \
 641         vnode.h                 \
 642         vscan.h                 \
 643         vtoc.h                  \
 644         vtrace.h                \
 645         vuid_event.h            \
 646         vuid_wheel.h            \
 647         vuid_queue.h            \
 648         vuid_state.h            \
 649         vuid_store.h            \
 650         wait.h                  \
 651         waitq.h                 \
 652         wanboot_impl.h          \
 653         watchpoint.h            \
 654         winlockio.h             \
 655         zcons.h                 \
 656         zone.h                  \
 657         xti_inet.h              \
 658         xti_osi.h               \
 659         xti_xtiopt.h            \
 660         zmod.h
 661 
 662 HDRS=                           \
 663         $(GENHDRS)              \
 664         $(CHKHDRS)
 665 
 666 AUDIOHDRS=                      \
 667         ac97.h                  \
 668         audio_common.h          \
 669         audio_driver.h          \
 670         audio_oss.h             \
 671         g711.h
 672 
 673 AVHDRS=                         \
 674         iec61883.h
 675 
 676 BSCHDRS=                        \
 677         bscbus.h                \
 678         bscv_impl.h             \
 679         lom_ebuscodes.h         \
 680         lom_io.h                \
 681         lom_priv.h              \
 682         lombus.h
 683 
 684 MDESCHDRS=                      \
 685         mdesc.h                 \
 686         mdesc_impl.h            
 687 
 688 CPUDRVHDRS=                     \
 689         cpudrv.h
 690 
 691 CRYPTOHDRS=                     \
 692         elfsign.h               \
 693         ioctl.h                 \
 694         ioctladmin.h            \
 695         common.h                \
 696         impl.h                  \
 697         spi.h                   \
 698         api.h                   \
 699         ops_impl.h              \
 700         sched_impl.h
 701 
 702 DCAMHDRS=                       \
 703         dcam1394_io.h
 704 
 705 IBHDRS=                 \
 706         ib_types.h      \
 707         ib_pkt_hdrs.h
 708 
 709 IBTLHDRS=               \
 710         ibtl_types.h    \
 711         ibtl_status.h   \
 712         ibti.h          \
 713         ibti_cm.h       \
 714         ibci.h          \
 715         ibti_common.h   \
 716         ibvti.h         \
 717         ibtl_ci_types.h
 718 
 719 IBTLIMPLHDRS=           \
 720         ibtl_util.h
 721 
 722 IBNEXHDRS=              \
 723         ibnex_devctl.h
 724 
 725 IBMFHDRS=               \
 726         ibmf.h          \
 727         ibmf_msg.h      \
 728         ibmf_saa.h      \
 729         ibmf_utils.h
 730 
 731 IBMGTHDRS=              \
 732         ib_dm_attr.h    \
 733         ib_mad.h        \
 734         sm_attr.h       \
 735         sa_recs.h
 736 
 737 IBDHDRS=                \
 738         ibd.h
 739 
 740 OFHDRS=                 \
 741         ofa_solaris.h   \
 742         ofed_kernel.h
 743 
 744 RDMAHDRS=               \
 745         ib_addr.h       \
 746         ib_user_mad.h   \
 747         ib_user_sa.h    \
 748         ib_user_verbs.h \
 749         ib_verbs.h      \
 750         rdma_cm.h       \
 751         rdma_user_cm.h
 752 
 753 SOL_UVERBSHDRS=         \
 754         sol_uverbs.h    \
 755         sol_uverbs2ucma.h       \
 756         sol_uverbs_comp.h       \
 757         sol_uverbs_hca.h        \
 758         sol_uverbs_qp.h         \
 759         sol_uverbs_event.h
 760 
 761 SOL_UMADHDRS=           \
 762         sol_umad.h
 763 
 764 SOL_UCMAHDRS=           \
 765         sol_ucma.h      \
 766         sol_rdma_user_cm.h
 767 
 768 SOL_OFSHDRS=            \
 769         sol_cma.h       \
 770         sol_ib_cma.h    \
 771         sol_ofs_common.h        \
 772         sol_kverb_impl.h
 773 
 774 TAVORHDRS=              \
 775         tavor_ioctl.h
 776 
 777 HERMONHDRS=             \
 778         hermon_ioctl.h
 779 
 780 MLNXHDRS=               \
 781         mlnx_umap.h
 782 
 783 IDMHDRS=                \
 784         idm.h           \
 785         idm_impl.h      \
 786         idm_so.h        \
 787         idm_text.h      \
 788         idm_transport.h \
 789         idm_conn_sm.h
 790 
 791 ISCSITHDRS=             \
 792         radius_packet.h         \
 793         radius_protocol.h       \
 794         chap.h                  \
 795         isns_protocol.h         \
 796         iscsi_if.h              \
 797         iscsit_common.h
 798 
 799 ISOHDRS=                        \
 800         signal_iso.h
 801 
 802 DERIVED_LVMHDRS=        \
 803         md_mdiox.h              \
 804         md_basic.h              \
 805         mdmed.h                 \
 806         md_mhdx.h               \
 807         mdmn_commd.h
 808 
 809 LVMHDRS=                        \
 810         md_convert.h            \
 811         md_crc.h                \
 812         md_hotspares.h          \
 813         md_mddb.h               \
 814         md_mirror.h             \
 815         md_mirror_shared.h      \
 816         md_names.h              \
 817         md_notify.h             \
 818         md_raid.h               \
 819         md_rename.h             \
 820         md_sp.h                 \
 821         md_stripe.h             \
 822         md_trans.h              \
 823         mdio.h                  \
 824         mdvar.h                 
 825 
 826 ALL_LVMHDRS=                    \
 827         $(LVMHDRS)              \
 828         $(DERIVED_LVMHDRS)
 829 
 830 FMHDRS=                         \
 831         protocol.h              \
 832         util.h
 833 
 834 FMFSHDRS=                       \
 835         zfs.h
 836 
 837 FMIOHDRS=                       \
 838         ddi.h                   \
 839         disk.h                  \
 840         pci.h                   \
 841         scsi.h                  \
 842         sun4upci.h              \
 843         opl_mc_fm.h
 844 
 845 FSHDRS=                         \
 846         autofs.h                \
 847         decomp.h                \
 848         dv_node.h               \
 849         sdev_impl.h             \
 850         fifonode.h              \
 851         hsfs_isospec.h          \
 852         hsfs_node.h             \
 853         hsfs_rrip.h             \
 854         hsfs_spec.h             \
 855         hsfs_susp.h             \
 856         lofs_info.h             \
 857         lofs_node.h             \
 858         mntdata.h               \
 859         namenode.h              \
 860         pc_dir.h                \
 861         pc_fs.h                 \
 862         pc_label.h              \
 863         pc_node.h               \
 864         pxfs_ki.h               \
 865         snode.h                 \
 866         swapnode.h              \
 867         tmp.h                   \
 868         tmpnode.h               \
 869         udf_inode.h             \
 870         udf_volume.h            \
 871         ufs_acl.h               \
 872         ufs_bio.h               \
 873         ufs_filio.h             \
 874         ufs_fs.h                \
 875         ufs_fsdir.h             \
 876         ufs_inode.h             \
 877         ufs_lockfs.h            \
 878         ufs_log.h               \
 879         ufs_mount.h             \
 880         ufs_panic.h             \
 881         ufs_prot.h              \
 882         ufs_quota.h             \
 883         ufs_snap.h              \
 884         ufs_trans.h             \
 885         zfs.h                   \
 886         zut.h
 887 
 888 SCSIHDRS=               \
 889         scsi.h          \
 890         scsi_address.h  \
 891         scsi_ctl.h      \
 892         scsi_fm.h       \
 893         scsi_params.h   \
 894         scsi_pkt.h      \
 895         scsi_resource.h \
 896         scsi_types.h    \
 897         scsi_watch.h
 898 
 899 SCSICONFHDRS=           \
 900         autoconf.h      \
 901         device.h
 902 
 903 SCSIGENHDRS=            \
 904         commands.h      \
 905         dad_mode.h      \
 906         inquiry.h       \
 907         message.h       \
 908         mode.h          \
 909         persist.h       \
 910         sense.h         \
 911         sff_frames.h    \
 912         smp_frames.h    \
 913         status.h
 914 
 915 SCSIIMPLHDRS=           \
 916         commands.h      \
 917         inquiry.h       \
 918         mode.h          \
 919         scsi_reset_notify.h \
 920         scsi_sas.h      \
 921         sense.h         \
 922         services.h      \
 923         smp_transport.h \
 924         spc3_types.h    \
 925         status.h        \
 926         transport.h     \
 927         types.h         \
 928         uscsi.h         \
 929         usmp.h
 930 
 931 SCSITARGETSHDRS=        \
 932         ses.h           \
 933         sesio.h         \
 934         sgendef.h       \
 935         stdef.h         \
 936         sddef.h         \
 937         smp.h
 938 
 939 SCSIADHDRS=
 940 
 941 SCSICADHDRS=
 942 
 943 SCSIISCSIHDRS=          \
 944         iscsi_door.h    \
 945         iscsi_if.h
 946 
 947 SCSIVHCIHDRS=           \
 948         scsi_vhci.h     \
 949         mpapi_impl.h    \
 950         mpapi_scsi_vhci.h
 951 
 952 SDCARDHDRS=             \
 953         sda.h           \
 954         sda_impl.h      \
 955         sda_ioctl.h
 956 
 957 FC4HDRS=                        \
 958         fc_transport.h  \
 959         linkapp.h       \
 960         fc.h            \
 961         fcp.h           \
 962         fcal_transport.h \
 963         fcal.h          \
 964         fcal_linkapp.h  \
 965         fcio.h
 966 
 967 FCHDRS=                 \
 968         fc.h            \
 969         fcio.h          \
 970         fc_types.h      \
 971         fc_appif.h
 972 
 973 FCIMPLHDRS=             \
 974         fc_error.h      \
 975         fcph.h
 976 
 977 FCULPHDRS=              \
 978         fcp_util.h      \
 979         fcsm.h
 980 
 981 SATAGENHDRS=            \
 982         sata_hba.h      \
 983         sata_defs.h     \
 984         sata_cfgadm.h
 985 
 986 SYSEVENTHDRS=           \
 987         ap_driver.h     \
 988         dev.h           \
 989         domain.h        \
 990         dr.h            \
 991         env.h           \
 992         eventdefs.h     \
 993         ipmp.h          \
 994         pwrctl.h        \
 995         svm.h           \
 996         vrrp.h
 997 
 998 CONTRACTHDRS=           \
 999         process.h       \
1000         process_impl.h  \
1001         device.h        \
1002         device_impl.h
1003 
1004 USBHDRS=        \
1005         usba.h  \
1006         usbai.h
1007 
1008 USBAUDHDRS=           \
1009         usb_audio.h
1010 
1011 USBHUBDHDRS=            \
1012         hub.h           \
1013         hubd_impl.h
1014 
1015 USBHIDHDRS=             \
1016         hid.h
1017 
1018 USBMSHDRS=              \
1019         usb_bulkonly.h  \
1020         usb_cbi.h
1021 
1022 USBPRNHDRS=           \
1023         usb_printer.h
1024 
1025 USBCDCHDRS=             \
1026         usb_cdc.h
1027 
1028 USBVIDHDRS=           \
1029         usbvc.h
1030 
1031 USBWCMHDRS=             \
1032         usbwcm.h
1033 
1034 UGENHDRS=           \
1035         usb_ugen.h
1036 
1037 HOTPLUGHDRS=    \
1038         hpcsvc.h        \
1039         hpctrl.h
1040 
1041 HOTPLUGPCIHDRS= \
1042         pcicfg.h        \
1043         pcihp.h
1044 
1045 RSMHDRS= \
1046         rsm.h   \
1047         rsm_common.h    \
1048         rsmapi_common.h \
1049         rsmpi.h \
1050         rsmpi_driver.h  \
1051         rsmka_path_int.h
1052 
1053 TSOLHDRS=               \
1054         label.h         \
1055         label_macro.h   \
1056         priv.h          \
1057         tndb.h          \
1058         tsyscall.h
1059 
1060 I1394HDRS=              \
1061         cmd1394.h       \
1062         id1394.h        \
1063         ieee1212.h      \
1064         ieee1394.h      \
1065         ixl1394.h       \
1066         s1394_impl.h    \
1067         t1394.h
1068 
1069 # "cmdk" headers used on sparc
1070 SDKTPHDRS=              \
1071         dadkio.h        \
1072         fdisk.h
1073 
1074 # "cmdk" headers used on i386
1075 DKTPHDRS=               \
1076         altsctr.h       \
1077         bbh.h           \
1078         cm.h            \
1079         cmdev.h         \
1080         cmdk.h          \
1081         cmpkt.h         \
1082         controller.h    \
1083         dadev.h         \
1084         dadk.h          \
1085         dadkio.h        \
1086         fctypes.h       \
1087         fdisk.h         \
1088         flowctrl.h      \
1089         gda.h           \
1090         quetypes.h      \
1091         queue.h         \
1092         tgcom.h         \
1093         tgdk.h
1094 
1095 # "pc" header files used on i386
1096 PCHDRS=                 \
1097         avintr.h        \
1098         dma_engine.h    \
1099         i8272A.h        \
1100         pcic_reg.h      \
1101         pcic_var.h      \
1102         pic.h           \
1103         pit.h           \
1104         rtc.h
1105 
1106 NXGEHDRS=                       \
1107         nxge.h                  \
1108         nxge_common.h           \
1109         nxge_common_impl.h      \
1110         nxge_defs.h             \
1111         nxge_hw.h               \
1112         nxge_impl.h             \
1113         nxge_ipp.h              \
1114         nxge_ipp_hw.h           \
1115         nxge_mac.h              \
1116         nxge_mac_hw.h           \
1117         nxge_fflp.h             \
1118         nxge_fflp_hw.h          \
1119         nxge_mii.h              \
1120         nxge_rxdma.h            \
1121         nxge_rxdma_hw.h         \
1122         nxge_txc.h              \
1123         nxge_txc_hw.h           \
1124         nxge_txdma.h            \
1125         nxge_txdma_hw.h         \
1126         nxge_virtual.h          \
1127         nxge_espc.h
1128 
1129 include Makefile.syshdrs
1130 
1131 dcam/%.check:   dcam/%.h
1132         $(DOT_H_CHECK)
1133 
1134 CHECKHDRS=                                              \
1135         $($(MACH)_HDRS:%.h=%.check)                     \
1136         $(AUDIOHDRS:%.h=audio/%.check)                  \
1137         $(AVHDRS:%.h=av/%.check)                        \
1138         $(BSCHDRS:%.h=%.check)                          \
1139         $(CHKHDRS:%.h=%.check)                          \
1140         $(CPUDRVHDRS:%.h=%.check)                       \
1141         $(CRYPTOHDRS:%.h=crypto/%.check)                \
1142         $(DCAMHDRS:%.h=dcam/%.check)                    \
1143         $(FC4HDRS:%.h=fc4/%.check)                      \
1144         $(FCHDRS:%.h=fibre-channel/%.check)             \
1145         $(FCIMPLHDRS:%.h=fibre-channel/impl/%.check)    \
1146         $(FCULPHDRS:%.h=fibre-channel/ulp/%.check)      \
1147         $(IBHDRS:%.h=ib/%.check)                        \
1148         $(IBDHDRS:%.h=ib/clients/ibd/%.check)           \
1149         $(IBTLHDRS:%.h=ib/ibtl/%.check)                 \
1150         $(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)        \
1151         $(IBNEXHDRS:%.h=ib/ibnex/%.check)       \
1152         $(IBMGTHDRS:%.h=ib/mgt/%.check)                 \
1153         $(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)             \
1154         $(OFHDRS:%.h=ib/clients/of/%.check)                     \
1155         $(RDMAHDRS:%.h=ib/clients/of/rdma/%.check)              \
1156         $(SOL_UVERBSHDRS:%.h=ib/clients/of/sol_uverbs/%.check)  \
1157         $(SOL_UCMAHDRS:%.h=ib/clients/of/sol_ucma/%.check)      \
1158         $(SOL_OFSHDRS:%.h=ib/clients/of/sol_ofs/%.check)        \
1159         $(TAVORHDRS:%.h=ib/adapters/tavor/%.check)      \
1160         $(HERMONHDRS:%.h=ib/adapters/hermon/%.check)    \
1161         $(MLNXHDRS:%.h=ib/adapters/%.check)             \
1162         $(IDMHDRS:%.h=idm/%.check)                      \
1163         $(ISCSIHDRS:%.h=iscsi/%.check)                  \
1164         $(ISCSITHDRS:%.h=iscsit/%.check)                        \
1165         $(ISOHDRS:%.h=iso/%.check)                      \
1166         $(FMHDRS:%.h=fm/%.check)                        \
1167         $(FMFSHDRS:%.h=fm/fs/%.check)                   \
1168         $(FMIOHDRS:%.h=fm/io/%.check)                   \
1169         $(FSHDRS:%.h=fs/%.check)                        \
1170         $(LVMHDRS:%.h=lvm/%.check)                      \
1171         $(SCSIHDRS:%.h=scsi/%.check)                    \
1172         $(SCSIADHDRS:%.h=scsi/adapters/%.check)         \
1173         $(SCSICONFHDRS:%.h=scsi/conf/%.check)           \
1174         $(SCSIIMPLHDRS:%.h=scsi/impl/%.check)           \
1175         $(SCSIISCSIHDRS:%.h=scsi/adapters/%.check)      \
1176         $(SCSIGENHDRS:%.h=scsi/generic/%.check)         \
1177         $(SCSITARGETSHDRS:%.h=scsi/targets/%.check)     \
1178         $(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)       \
1179         $(SATAGENHDRS:%.h=sata/%.check)                 \
1180         $(SDCARDHDRS:%.h=sdcard/%.check)                \
1181         $(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1182         $(CONTRACTHDRS:%.h=contract/%.check)            \
1183         $(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1184         $(USBHUBDHDRS:%.h=usb/hubd/%.check)             \
1185         $(USBHIDHDRS:%.h=usb/clients/hid/%.check)       \
1186         $(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)       \
1187         $(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1188         $(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)    \
1189         $(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1190         $(USBWCMHDRS:%.h=usb/clients/usbinput/usbwcm/%.check)   \
1191         $(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1192         $(USBHDRS:%.h=usb/%.check)                      \
1193         $(I1394HDRS:%.h=1394/%.check)                   \
1194         $(RSMHDRS:%.h=rsm/%.check)                      \
1195         $(TSOLHDRS:%.h=tsol/%.check)                    \
1196         $(NXGEHDRS:%.h=nxge/%.check)
1197 
1198 
1199 .KEEP_STATE:
1200 
1201 .PARALLEL:                      \
1202         $(CHECKHDRS)            \
1203         $(ROOTHDRS)             \
1204         $(ROOTAUDHDRS)          \
1205         $(ROOTAVHDRS)           \
1206         $(ROOTCRYPTOHDRS)       \
1207         $(ROOTDCAMHDRS)         \
1208         $(ROOTISOHDRS)          \
1209         $(ROOTIDMHDRS)          \
1210         $(ROOTISCSIHDRS)        \
1211         $(ROOTISCSITHDRS)       \
1212         $(ROOTFC4HDRS)          \
1213         $(ROOTFCHDRS)           \
1214         $(ROOTFCIMPLHDRS)       \
1215         $(ROOTFCULPHDRS)        \
1216         $(ROOTFMHDRS)           \
1217         $(ROOTFMIOHDRS)         \
1218         $(ROOTFMFSHDRS)         \
1219         $(ROOTFSHDRS)           \
1220         $(ROOTIBDHDRS)          \
1221         $(ROOTIBHDRS)           \
1222         $(ROOTIBTLHDRS)         \
1223         $(ROOTIBTLIMPLHDRS)     \
1224         $(ROOTIBNEXHDRS)        \
1225         $(ROOTIBMGTHDRS)        \
1226         $(ROOTIBMFHDRS)         \
1227         $(ROOTOFHDRS)           \
1228         $(ROOTRDMAHDRS)         \
1229         $(ROOTSOL_OFSHDRS)      \
1230         $(ROOTSOL_UMADHDRS)     \
1231         $(ROOTSOL_UVERBSHDRS)   \
1232         $(ROOTSOL_UCMAHDRS)     \
1233         $(ROOTTAVORHDRS)        \
1234         $(ROOTHERMONHDRS)       \
1235         $(ROOTMLNXHDRS)         \
1236         $(ROOTLVMHDRS)          \
1237         $(ROOTSCSIHDRS)         \
1238         $(ROOTSCSIADHDRS)       \
1239         $(ROOTSCSICONFHDRS)     \
1240         $(ROOTSCSIISCSIHDRS)    \
1241         $(ROOTSCSIGENHDRS)      \
1242         $(ROOTSCSIIMPLHDRS)     \
1243         $(ROOTSCSIVHCIHDRS)     \
1244         $(ROOTSDCARDHDRS)       \
1245         $(ROOTSYSEVENTHDRS)     \
1246         $(ROOTCONTRACTHDRS)     \
1247         $(ROOTUSBHDRS)          \
1248         $(ROOTUWBHDRS)          \
1249         $(ROOTUWBAHDRS)         \
1250         $(ROOTUSBAUDHDRS)       \
1251         $(ROOTUSBHUBDHDRS)      \
1252         $(ROOTUSBHIDHDRS)       \
1253         $(ROOTUSBHRCHDRS)       \
1254         $(ROOTUSBMSHDRS)        \
1255         $(ROOTUSBPRNHDRS)       \
1256         $(ROOTUSBCDCHDRS)       \
1257         $(ROOTUSBVIDHDRS)       \
1258         $(ROOTUSBWCMHDRS)       \
1259         $(ROOTUGENHDRS)         \
1260         $(ROOT1394HDRS)         \
1261         $(ROOTHOTPLUGHDRS)      \
1262         $(ROOTHOTPLUGPCIHDRS)   \
1263         $(ROOTRSMHDRS)          \
1264         $(ROOTTSOLHDRS)         \
1265         $($(MACH)_ROOTHDRS)
1266 
1267 
1268 install_h:                      \
1269         $(ROOTDIRS)             \
1270         LVMDERIVED_H            \
1271         .WAIT                   \
1272         $(ROOTHDRS)             \
1273         $(ROOTAUDHDRS)          \
1274         $(ROOTAVHDRS)           \
1275         $(ROOTCRYPTOHDRS)       \
1276         $(ROOTDCAMHDRS)         \
1277         $(ROOTISOHDRS)          \
1278         $(ROOTIDMHDRS)          \
1279         $(ROOTISCSIHDRS)        \
1280         $(ROOTISCSITHDRS)       \
1281         $(ROOTFC4HDRS)          \
1282         $(ROOTFCHDRS)           \
1283         $(ROOTFCIMPLHDRS)       \
1284         $(ROOTFCULPHDRS)        \
1285         $(ROOTFMHDRS)           \
1286         $(ROOTFMFSHDRS)         \
1287         $(ROOTFMIOHDRS)         \
1288         $(ROOTFSHDRS)           \
1289         $(ROOTIBDHDRS)          \
1290         $(ROOTIBHDRS)           \
1291         $(ROOTIBTLHDRS)         \
1292         $(ROOTIBTLIMPLHDRS)     \
1293         $(ROOTIBNEXHDRS)        \
1294         $(ROOTIBMGTHDRS)        \
1295         $(ROOTIBMFHDRS)         \
1296         $(ROOTOFHDRS)           \
1297         $(ROOTRDMAHDRS)         \
1298         $(ROOTSOL_OFSHDRS)      \
1299         $(ROOTSOL_UMADHDRS)     \
1300         $(ROOTSOL_UVERBSHDRS)   \
1301         $(ROOTSOL_UCMAHDRS)     \
1302         $(ROOTTAVORHDRS)        \
1303         $(ROOTHERMONHDRS)       \
1304         $(ROOTMLNXHDRS)         \
1305         $(ROOTLVMHDRS)          \
1306         $(ROOTSCSIHDRS)         \
1307         $(ROOTSCSIADHDRS)       \
1308         $(ROOTSCSIISCSIHDRS)    \
1309         $(ROOTSCSICONFHDRS)     \
1310         $(ROOTSCSIGENHDRS)      \
1311         $(ROOTSCSIIMPLHDRS)     \
1312         $(ROOTSCSIVHCIHDRS)     \
1313         $(ROOTSDCARDHDRS)       \
1314         $(ROOTSYSEVENTHDRS)     \
1315         $(ROOTCONTRACTHDRS)     \
1316         $(ROOTUWBHDRS)          \
1317         $(ROOTUWBAHDRS)         \
1318         $(ROOTUSBHDRS)          \
1319         $(ROOTUSBAUDHDRS)       \
1320         $(ROOTUSBHUBDHDRS)      \
1321         $(ROOTUSBHIDHDRS)       \
1322         $(ROOTUSBHRCHDRS)       \
1323         $(ROOTUSBMSHDRS)        \
1324         $(ROOTUSBPRNHDRS)       \
1325         $(ROOTUSBCDCHDRS)       \
1326         $(ROOTUSBVIDHDRS)       \
1327         $(ROOTUSBWCMHDRS)       \
1328         $(ROOTUGENHDRS)         \
1329         $(ROOT1394HDRS)         \
1330         $(ROOTHOTPLUGHDRS)      \
1331         $(ROOTHOTPLUGPCIHDRS)   \
1332         $(ROOTRSMHDRS)          \
1333         $(ROOTTSOLHDRS)         \
1334         $($(MACH)_ROOTHDRS)
1335 
1336 all_h: $(GENHDRS)
1337 
1338 priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1339         $(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1340 
1341 priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1342         $(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1343 
1344 usb/usbdevs.h: $(USBDEVS_AWK) $(USBDEVS_DATA)
1345         $(NAWK) -f $(USBDEVS_AWK) $(USBDEVS_DATA) -H > $@
1346 
1347 LVMDERIVED_H:
1348         cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE) all_h
1349 
1350 clean:
1351         $(RM) $(GENHDRS)
1352 
1353 clobber: clean
1354         cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE) clobber
1355 
1356 check:  $(CHECKHDRS)
1357 
1358 FRC: